public override void unexecute() { for (int i = 0; i < Count; i++) { storage.setObject(objects[i]); } }
public void ungroup(MyStorage storage, int k) { for (int i = count - 1; i >= 0; i--) { storage.setObject(group[i]); } storage.deleteObject(k); }
public void execute(MyStorage _storage, int _ind) { storage = _storage; index = _ind; obj = new CStickyObject(storage.getObject(index)); storage.deleteObject(index); index = storage.setObject(obj); Console.WriteLine(index); }
public void execute(string _classname, int _x, int _y, MyStorage _storage) { classname = _classname; x = _x; y = _y; storage = _storage; p = factory.createPoint(classname, x, y); i = storage.setObject(p); }
override public void execute() { obj = new CStickyObject(storage.getObject(index)); storage.deleteObject(index); index = storage.setObject(obj); }
override public void execute() { p = factory.createPoint(classname, x, y); i = storage.setObject(p); }