Ejemplo n.º 1
0
        private void panel1_MouseMove(object sender, MouseEventArgs e)
        {
            if (toolSelected != null && shouldPaint == true)
            {
                this.Refresh();
                //toolSelected.MouseMove(sender, e, panel1, listObject);
                toolSelected.MouseMove(sender, e, panel1, drawables);
                this.Invalidate();
            }

            /*else if (select == true&&shouldPaint==true)
             * {
             *  this.Refresh();
             *  toolSelected.MouseMove(sender, e, panel1, listObject);
             *  if (posisiClick != -1)
             *  {
             *      System.Diagnostics.Debug.WriteLine("Masukoii");
             *      this.Refresh();
             *      objectSelected.Resize(posisiClick, e.Location);
             *      objectSelected.Draw();
             *      objectSelected.DrawEdit();
             *      objectSelected.DrawHandle();
             *  }
             *  else
             *  {
             *      System.Diagnostics.Debug.WriteLine("Masuk"+posisiClick);
             *      this.Refresh();
             *      objectSelected.Translate(e.X - initial.X, e.Y - initial.Y);
             *      //System.Diagnostics.Debug.WriteLine("objectSelected.from");
             *      initial = e.Location;
             *      objectSelected.DrawObject();//masalah
             *      objectSelected.DrawHandle();
             *  }
             * }*/
        }
Ejemplo n.º 2
0
 private void panel1_MouseMove_1(object sender, MouseEventArgs e)
 {
     if (toolSelected != null && shouldPaint == true)
     {
         this.Refresh();
         //toolSelected.MouseMove(sender, e, panel1, listObject);
         toolSelected.MouseMove(sender, e, panel1, drawables);
         this.Invalidate();
     }
 }