public void OnMouseUp(AbstractFigure figure, ActionParamter paramter) { if (figure != null && figure.CheckDraw()) { Canvas.Instanse.AddFigure(figure); } Canvas.Instanse.SetBitmap(Canvas.Instanse.GetTempBitmap()); }
public void OnMouseDown(out AbstractFigure figure, ActionParamter paramter) { var p = paramter; figure = p.Factory.CreateFigure(); figure.Color = p.Color; figure.Width = p.Width; figure.DoStart(p.Point); //return new EmptyActionResult(); }
public void OnMouseMove(AbstractFigure figure, ActionParamter paramter) { if (figure != null) { Color color = figure.Color; int width = figure.Width; figure.Points[indPoint] = paramter.Point; figure.Mover.MoveFigure(color, width, figure.Points.ToArray()); } Canvas.Instanse.GetBitmap(); }
public void OnMouseDown(out AbstractFigure figure, ActionParamter paramter) { figure = null; foreach (AbstractFigure crntFigure in Canvas.Instanse._figures) { if (crntFigure.CheckFigure(paramter.Point)) { figure = crntFigure; Canvas.Instanse._figures.Remove(figure); Canvas.Instanse.DrawAll(); //figure.DoStartM(paramter.Point); break; } } }
public void OnMouseDown(out AbstractFigure figure, ActionParamter paramter) { figure = null; foreach (AbstractFigure crntFigure in Canvas.Instanse._figures) { if (crntFigure.CheckFigure(paramter.Point)) { figure = crntFigure; Canvas.Instanse._figures.Remove(figure); Canvas.Instanse.DrawAll(); figure.ChangeColor(paramter.Color); Canvas.Instanse.GetTempBitmap(); break; } } }
public void OnMouseDown(out AbstractFigure figure, ActionParamter paramter) { figure = null; foreach (AbstractFigure crntFigure in Canvas.Instanse._figures) { if (crntFigure.CheckFigure(paramter.Point)) { for (int i = 0; i < crntFigure.Points.Count(); i++) { if (crntFigure.CheckInsidePoint(crntFigure.Points[i], paramter.Point)) { indPoint = i; figure = crntFigure; Canvas.Instanse._figures.Remove(figure); Canvas.Instanse.DrawAll(); break; } } break; } } }
public void OnMouseMove(AbstractFigure figure, ActionParamter paramter) { figure.Move(paramter.Point);; }
public void OnMouseMove(AbstractFigure figure, ActionParamter paramter) { Canvas.Instanse.GetTempBitmap(); }
public void OnMouseUp(AbstractFigure figure, ActionParamter paramter) { }