private void MainUI_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { PInvoke.DragControl(((Form)sender).Handle); } }
private void statisticsPanel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { PInvoke.DragControl(((DoubleBufferedPanel)sender).Parent.Handle); } }
private void playerHealthStatus_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { PInvoke.DragControl(((PictureBox)sender).Parent.Handle); } }
private void inventoryPanel_MouseDown(object sender, MouseEventArgs e) { if (!Program.programSpecialOptions.Flags.HasFlag(ProgramFlags.NoInventory)) { if (e.Button == MouseButtons.Left) { PInvoke.DragControl(((DoubleBufferedPanel)sender).Parent.Handle); } } }