Ejemplo n.º 1
0
 private void panelSelect_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         //Console.WriteLine("MouseUp,X:" + e.X + "Y:" + e.Y);
         if (dragger != null)
             dragger.End(e.Location);
         dragger = null;
     }
 }
Ejemplo n.º 2
0
 private void panelSelect_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         //Console.WriteLine("MouseDown,X:" + e.X + "Y:" + e.Y);
         dragger = new Dragger(this.panelSource, this.panelSelect, e.Location);
     }
 }