Esempio n. 1
0
 private void panel1_MouseDown_1(object sender, MouseEventArgs e)
 {
     panel1.Cursor = Cursors.Cross;
     if (e.Button == MouseButtons.Left && toolSelected != null)
     {
         shouldPaint = true;
         //toolSelected.MouseDown(sender, e, panel1, listObject);
         toolSelected.MouseDown(sender, e, panel1, drawables);
     }
 }
Esempio n. 2
0
        private void panel1_MouseDown(object sender, MouseEventArgs e)
        {
            panel1.Cursor = Cursors.Cross;
            if (e.Button == MouseButtons.Left && toolSelected != null)
            {
                shouldPaint = true;
                //toolSelected.MouseDown(sender, e, panel1, listObject);
                toolSelected.MouseDown(sender, e, panel1, drawables);
            }

            /*else if (selectTool.isActive == true && e.Button == MouseButtons.Left)
             * {
             *  toolSelected.MouseDown(sender, e, panel1, listObject);
             *  //shouldPaint = true;
             *  initial = e.Location;
             *  if (objectSelected == null)
             *  {
             *      System.Diagnostics.Debug.WriteLine("Gak ada");
             *      foreach (AObject Object in listObject)
             *      {
             *          if (Object.Select(e.Location) == true)
             *          {
             *              shouldPaint = true;
             *              objectSelected = Object;
             *              Object.DrawEdit();
             *              Object.DrawHandle();
             *              break;
             *          }
             *      }
             *  }
             *  else
             *  {
             *      System.Diagnostics.Debug.WriteLine("Ada");
             *      posisiClick = objectSelected.GetClickHandle(e.Location);
             *      System.Diagnostics.Debug.WriteLine(posisiClick);
             *  }
             *  panel1.Invalidate();
             * }*/
        }