Beispiel #1
0
 private void paintPanle1_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         IPaintItem selectedunit = this.paintPanle1.GetItemAtPoint(e.Location);
         if (selectedunit != null && selectedunit is PaintUnit)
         {
             if (toolStripButton4.Checked)
             {
                 PaintLink link = new PaintLink("", ItemStatus.Actived, e.Location, new Pen(Color.Black), this.Font);
                 link.StartPoint         = (PaintUnit)selectedunit;
                 m_currentitem           = link;
                 paintPanle1.DrawingLink = true;
             }
         }
     }
 }
Beispiel #2
0
 private void paintPanle1_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         IPaintItem selectedunit = this.paintPanle1.GetItemAtPoint(e.Location) ;
         if(selectedunit != null && selectedunit is PaintUnit )
         {
             if (toolStripButton4.Checked)
             {
                 PaintLink link = new PaintLink("", ItemStatus.Actived, e.Location, new Pen(Color.Black), this.Font);
                 link.StartPoint = (PaintUnit)selectedunit;
                 m_currentitem = link;
                 paintPanle1.DrawingLink = true;
             }
         }
     }
 }