private void TopPnl_MouseMove(object sender, MouseEventArgs e) { var newLocation = DraggableForm.MouseMove(); if (newLocation != Point.Empty) { this.Location = newLocation; } }
private void TopPnl_MouseUp(object sender, MouseEventArgs e) { DraggableForm.MouseUp(); }
private void TopPnl_MouseDown(object sender, MouseEventArgs e) { DraggableForm.MouseDown(Cursor.Position, this.Location); }