private void list_DoubleClick(object sender, EventArgs e) { if (this.list.SelectedItems.Count == 0) return; ListViewItem item = this.list.SelectedItems[0]; if (mover == null) mover = new WindowMover(); mover.SetWindowHandle((IntPtr)item.Tag); mover.ShowDialog(this); }
private void list_DoubleClick(object sender, EventArgs e) { if (this.list.SelectedItems.Count == 0) { return; } ListViewItem item = this.list.SelectedItems[0]; if (mover == null) { mover = new WindowMover(); } mover.SetWindowHandle((IntPtr)item.Tag); mover.ShowDialog(this); }