Does anyone have an example of the UndoEngine workign with a custom IComponentChangeService implemen

  • Thread starter Thread starter tribbles
  • Start date Start date
T

tribbles

Just trying to figure out how to get a service working that has no
viable public methods... My current problem is that nothign ever gets
added to the undo stack... All of the other methods are getting
called. So my base assumption right now that is that my custom
implementation is either preventing the UndoEngine service from getting
called or that the designer example from MS that doesn't use a designer
class, is unaware of the UndoEngine.

ANyway, my head for the designer class is this:

public class RootDesigner : IContainer, IDesignerHost,
IDesignerLoaderHost,
IComponentChangeService, IExtenderProviderService,
IToolboxUser, IDesignerEventService
{


Changing my OnChanged event to trigger the UndoEngine is possible, I'll
have to make some public accessor methods on the UndoEngien
implementation. However, currently my changed event get's called more
than once for 1 user operation. In the case of coping, 1 for the copy
and 3 or 4 more for changing properties... This of course would not be
a very optimal implementation of undo to have 4 entries for 1 user
change. :(

Anyways, any help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top