Пример #1
0
        // tries to remove object from diagram with Undo
        public bool Destroy(IRemoveable o)
        {
            bool res = o.Destroy();

            if (res)
            {
                Undo.Push(new RemoveOperation(o), false);
            }
            return(res);
        }
Пример #2
0
 public override void Do()
 {
     obj.Destroy();
 }
Пример #3
0
 // tries to remove object from diagram with Undo
 public bool Destroy( IRemoveable o )
 {
     bool res = o.Destroy();
     if( res )
         Undo.Push( new RemoveOperation( o ), false );
     return res;
 }