示例#1
0
        private void TopPnl_MouseMove(object sender, MouseEventArgs e)
        {
            var newLocation = DraggableForm.MouseMove();

            if (newLocation != Point.Empty)
            {
                this.Location = newLocation;
            }
        }
示例#2
0
 private void TopPnl_MouseUp(object sender, MouseEventArgs e)
 {
     DraggableForm.MouseUp();
 }
示例#3
0
 private void TopPnl_MouseDown(object sender, MouseEventArgs e)
 {
     DraggableForm.MouseDown(Cursor.Position, this.Location);
 }