Example #1
0
 public void OnMouseUp(AbstractFigure figure, ActionParamter paramter)
 {
     if (figure != null && figure.CheckDraw())
     {
         Canvas.Instanse.AddFigure(figure);
     }
     Canvas.Instanse.SetBitmap(Canvas.Instanse.GetTempBitmap());
 }
Example #2
0
        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();
        }
Example #3
0
 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();
 }
Example #4
0
 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;
         }
     }
 }
Example #5
0
 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;
         }
     }
 }
Example #6
0
 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;
         }
     }
 }
Example #7
0
 public void OnMouseMove(AbstractFigure figure, ActionParamter paramter)
 {
     figure.Move(paramter.Point);;
 }
Example #8
0
 public void OnMouseMove(AbstractFigure figure, ActionParamter paramter)
 {
     Canvas.Instanse.GetTempBitmap();
 }
Example #9
0
 public void OnMouseUp(AbstractFigure figure, ActionParamter paramter)
 {
 }