private void gridControl1_DoubleClick(object sender, EventArgs e) { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; vivaprocess.Global.slegFlag = 1; vivaprocess.Global.slegDate = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "ДАТА_ПОСТУПЛ").ToString(); //prod_date_in vivaprocess.Global.slegNN = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "NN")).ToString(); int newF = 1; foreach (Form frmKuhniFullFf in Application.OpenForms) { if (frmKuhniFullFf is frmKuhniFull) { frmKuhniFullFf.Activate(); newF = 0; break; } } if (newF == 1) { frmKuhniFullF = new frmKuhniFull(); frmKuhniFullF.MdiParent = this.MdiParent; frmKuhniFullF.Show(); } //lblTest.Text = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "NN")).ToString(); this.Cursor = System.Windows.Forms.Cursors.Default; }
public void mnuKuhniFull_Click(object sender, System.EventArgs e) { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; if (frmKuhniFullF == null || frmKuhniFullF.IsDisposed) { frmKuhniFullF = new frmKuhniFull(); frmKuhniFullF.MdiParent = this; frmKuhniFullF.Show(); } else { frmKuhniFullF.Activate(); } this.Cursor = System.Windows.Forms.Cursors.Default; }