Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
        public override void Undo(GraphicsList list)
        {
            list.UnselectAll();

            // Add all objects from cloneList to list.
            foreach(DrawObject o in cloneList)
            {
                list.Add(o);
            }
        }
Example #4
0
        public override void Undo(GraphicsList list)
        {
            // list.UnselectAll();

            // Add all objects from cloneList to list.
            foreach (DrawObject o in cloneList)
            {
                list.Add(o);
            }
        }
Example #5
0
    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;
    }
Example #6
0
 /// <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);
 }
Example #7
0
 /// <summary>
 /// Redo last Add command
 /// </summary>
 /// <param name="list">Layers collection</param>
 public override void Redo(GraphicsList list)
 {
     // list.UnselectAll();
     list.Add(drawObject);
 }
Example #8
0
 public override void Redo(GraphicsList list)
 {
     list.UnselectAll();
     list.Add(drawObject);
 }