private void Form1_Move(object sender, EventArgs e) { if (imgForm == null || imgForm.IsDisposed) { imgForm = new FormImage(); } imgForm.Location = new Point(this.Location.X + this.Width, this.Location.Y); }
private void dgvAlarms_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (imgForm == null || imgForm.IsDisposed) { imgForm = new FormImage(); imgForm.Location = new Point(this.Location.X + this.Width, this.Location.Y); } imgForm.Show(); }