private void Manage_user_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { MoveForm.ReleaseCapture(); MoveForm.SendMessage(Handle, MoveForm.WM_NCLBUTTONDOWN, MoveForm.HT_CAPTION, 0); } }
private void MoveOnClick(object sender, EventArgs e) { MoveForm form = new MoveForm(); form.ShowDialog(); utils.Move(form.X, form.Y, form.Z); pictureBox1.Invalidate(); }
private void Login_MouseMove(object sender, MouseEventArgs e) { MoveForm.moverForm(this.Handle, this); }
private void перемещениеToolStripMenuItem_Click(object sender, EventArgs e) { MoveForm mf = new MoveForm(vc, dmc); mf.Show(); }
private void MoveButton_Click(object sender, EventArgs e) { try { MoveForm moveForm = new MoveForm(); List <FileSystemInfo> checkedfilesAndDirectories = new List <FileSystemInfo>(); if (isLeftActive) { foreach (ListViewItem item in LeftListView.SelectedItems) { if (item.SubItems[2].Text.Equals("<папка>")) { checkedfilesAndDirectories.Add(new DirectoryInfo(Path.Combine(LeftViewRootPath, item.SubItems[0].Text))); } else if (!item.SubItems[0].Text.Equals("...")) { string filename = item.SubItems[0].Text; if (item.SubItems[1].Text != "") { filename = filename + "." + item.SubItems[1].Text; } checkedfilesAndDirectories.Add(new FileInfo(Path.Combine(LeftViewRootPath, filename))); } } if (checkedfilesAndDirectories.Count == 0) { moveForm.Dispose(); return; } moveForm.SetParametres(checkedfilesAndDirectories, LeftViewRootPath, RightViewRootPath); } else { foreach (ListViewItem item in RightListView.SelectedItems) { if (item.SubItems[2].Text.Equals("<папка>")) { checkedfilesAndDirectories.Add(new DirectoryInfo(Path.Combine(RightViewRootPath, item.SubItems[0].Text))); } else { string filename = item.SubItems[0].Text; if (item.SubItems[1].Text != "") { filename = filename + "." + item.SubItems[1].Text; } checkedfilesAndDirectories.Add(new FileInfo(Path.Combine(RightViewRootPath, filename))); } } if (checkedfilesAndDirectories.Count == 0) { moveForm.Dispose(); return; } moveForm.SetParametres(checkedfilesAndDirectories, RightViewRootPath, LeftViewRootPath); } moveForm.Show(); } catch (Exception ex) { MessageBox.Show("FATAL: " + ex.Message + "\n" + ex.StackTrace); } }