public void AddToSelection(IFigure figure) { if (!IsFigureSelected(figure) && Drawing.Includes(figure)) { _selection.Add(figure); figure.Invalidate(); } }
public void BringToFront(IFigure figure) { if (Includes(figure)) { Figures.Remove(figure); Figures.Add(figure); figure.Invalidate(); } }
public void SendToBack(IFigure figure) { if (Includes(figure)) { Figures.Remove(figure); Figures.Insert(0, figure); figure.Invalidate(); } }
public virtual void Remove(IFigure figure) { if (!Figures.Contains(figure)) { return; } Figures.Remove(figure); figure.FigureInvalidated -= FigureInvalidatedHandler; figure.Invalidate(); }
public virtual void Add(IFigure figure) { if (Figures.Contains(figure)) { return; } Figures.Add(figure); figure.FigureInvalidated += FigureInvalidatedHandler; figure.Invalidate(); }
public void RemoveFromSelection(IFigure figure) { _selection.Remove(figure); figure.Invalidate(); }
public void RemoveFromSelection (IFigure figure) { _selection.Remove (figure); figure.Invalidate (); }
public void AddToSelection (IFigure figure) { if (!IsFigureSelected (figure) && Drawing.Includes (figure)) { _selection.Add (figure); figure.Invalidate (); } }
public void BringToFront (IFigure figure) { if (Includes (figure)) { Figures.Remove (figure); Figures.Add (figure); figure.Invalidate (); } }
public void SendToBack (IFigure figure) { if (Includes (figure)) { Figures.Remove (figure); Figures.Insert (0, figure); figure.Invalidate (); } }
public virtual void Remove (IFigure figure) { if (!Figures.Contains (figure)) { return; } Figures.Remove (figure); figure.FigureInvalidated -= FigureInvalidatedHandler; figure.Invalidate (); }
public virtual void Add (IFigure figure) { if (Figures.Contains (figure)) { return; } Figures.Add (figure); figure.FigureInvalidated += FigureInvalidatedHandler; figure.Invalidate (); }