コード例 #1
0
 /// <summary>
 /// This function is used to make Undo operation.
 /// It makes action opposite to the original command.
 /// </summary>
 /// <param name="list">Graphics list</param>
 public void Undo(GraphicsList list)
 {
     // Add all objects from clone list to list -
     // opposite to DeleteAll
     foreach (DrawObject o in _cloneList)
     {
         list.Add(o);
     }
 }
コード例 #2
0
 /// <summary>
 /// This function is used to make Undo operation.
 /// It makes action opposite to the original command.
 /// </summary>
 /// <param name="list">Graphics list</param>
 public void Undo(GraphicsList list)
 {
     // Add all objects from clone list to list -
     // opposite to DeleteAll
     foreach (DrawObject o in _cloneList)
     {
         list.Add(o);
     }
 }
コード例 #3
0
        public void Undo(GraphicsList list)
        {
            list.UnselectAll();

            // Add all objects from cloneList to list.
            foreach (DrawObject o in _cloneList)
            {
                list.Add(o);
            }
        }
コード例 #4
0
        public void Undo(GraphicsList list)
        {
            list.UnselectAll();

            // Add all objects from cloneList to list.
            foreach (DrawObject o in _cloneList)
            {
                list.Add(o);
            }
        }