public override void Undo(GraphicsList list) { // Add all objects from clone list to list - // opposite to DeleteAll foreach (DrawObject o in cloneList) { list.Add(o); } }
public override void Undo(GraphicsList list) { list.UnselectAll(); // Add all objects from cloneList to list. foreach(DrawObject o in cloneList) { list.Add(o); } }
public override void Undo(GraphicsList list) { // list.UnselectAll(); // Add all objects from cloneList to list. foreach (DrawObject o in cloneList) { list.Add(o); } }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { //var resource = this.Resources["GraphicsData"] as GraphicsList; var resource = new GraphicsList(); resource.Add(new Graphics() { Name = "Some new Collection of data" }); this.GraphicsData = resource; }
/// <summary> /// This command is used to make Redo operation. /// It makes original command again. /// </summary> /// <param name="list">Graphics list</param> public void Redo(GraphicsList list) { list.UnselectAll(); list.Add(_drawObject); }
/// <summary> /// Redo last Add command /// </summary> /// <param name="list">Layers collection</param> public override void Redo(GraphicsList list) { // list.UnselectAll(); list.Add(drawObject); }
public override void Redo(GraphicsList list) { list.UnselectAll(); list.Add(drawObject); }