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; } }
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); } }