public static void AddDeleteAction(Shape shape, ref ListBox listBoxShapes, ref GroupBox groupBoxShape)
 {
     if (IsActionTrackingDisabled)
         return;
     UpdateUndoRedoValues();
     actions.Add(new UndoRedo.WorkingActionDelete(shape, Editor.Shapes, ref listBoxShapes, ref groupBoxShape));
 }
 public static void AddModifyAction(Shape shape, Shape storedShape)
 {
     if (IsActionTrackingDisabled)
         return;
     UpdateUndoRedoValues();
     actions.Add(new UndoRedo.WorkingActionModify(shape, storedShape, Editor.Shapes));
 }
        public static void AddAddAction(Shape shape, ref ListBox listBoxShapes, ref GroupBox groupBoxShape)
        {
            if (IsActionTrackingDisabled)
                return;
            UpdateUndoRedoValues();
            actions.Add(new UndoRedo.WorkingActionAdd(shape, Editor.Shapes, ref listBoxShapes, ref groupBoxShape));

            if (UpdateTCPClientNotifier != null)
                UpdateTCPClientNotifier();
        }
 public WorkingAction(Shape shape, BindingList<Shape> shapes)
 {
     this.shape = shape;
     this.shapes = shapes;
     listIndex = shapes.TakeWhile(s => s != shape).Count();
 }
Пример #5
0
 private void UpdateShapePanel(Shape selectedShape)
 {
     panelShapeValues.Controls.Clear();
     ShapeControls.ShapeControl newControl = selectedShape.Control;
     newControl.CurrentShape = selectedShape;
     panelShapeValues.Controls.Add(newControl);
     newControl.Show();
     selectedShape.Select();
 }