المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Implement Undo/Redo - Copy/Paste on DesignSurface



C# Programming
09-30-2013, 02:28 AM
Hello, this question is related to the System.ComponentModel namespace.

I started to work on a project that allows creating forms at design-time. I have a DesignSurface and all features are already implemented except for the Undo/Redo and Copy/Paste feature.

By reading on the net, I got that I could use the UndoEngine class for Undo/Redo functionality if I create an additional service, a serialization service. It`s still blurry.

I know even little about the requirements for the Copy/Paste features. I can invoke the command, but nothing happens.

I think the commands will work if I add another unknown service,
but this is an assumption.

If someone could shade light on how this works.

Also, can anyone tell me what the heck is CodeDom Serialization?

Thanks