Example #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);
        }
Example #2
0
 public override void Do()
 {
     obj.Destroy();
 }
Example #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;
 }