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.
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.