Ejemplo n.º 1
0
 public void AddToSelection(IFigure figure)
 {
     if (!IsFigureSelected(figure) && Drawing.Includes(figure))
     {
         _selection.Add(figure);
         figure.Invalidate();
     }
 }
Ejemplo n.º 2
0
 public void BringToFront(IFigure figure)
 {
     if (Includes(figure))
     {
         Figures.Remove(figure);
         Figures.Add(figure);
         figure.Invalidate();
     }
 }
Ejemplo n.º 3
0
 public void SendToBack(IFigure figure)
 {
     if (Includes(figure))
     {
         Figures.Remove(figure);
         Figures.Insert(0, figure);
         figure.Invalidate();
     }
 }
Ejemplo n.º 4
0
        public virtual void Remove(IFigure figure)
        {
            if (!Figures.Contains(figure))
            {
                return;
            }

            Figures.Remove(figure);
            figure.FigureInvalidated -= FigureInvalidatedHandler;
            figure.Invalidate();
        }
Ejemplo n.º 5
0
        public virtual void Add(IFigure figure)
        {
            if (Figures.Contains(figure))
            {
                return;
            }

            Figures.Add(figure);
            figure.FigureInvalidated += FigureInvalidatedHandler;
            figure.Invalidate();
        }
Ejemplo n.º 6
0
 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 ();
		}