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