private void dgvResult_DoubleClick(object sender, EventArgs e) { try { clsScenario mySce = new clsScenario(); mySce.GetScenarioByID(clsGlobals.GIPar.ScenarioID); clsGlobals.GIPar.ProductColorID = Convert.ToInt32(dgvResult.CurrentRow.Cells[0].Value); clsGlobals.ActiveRatio = mySce.SurplusRateIdentified; clsGlobals.BkRatio = mySce.SurplusRateIdentified; clsGlobals.CollectionsFlag = true; if (frOP == null) { frOP = new frmOrderProductsCollections(); frOP.MdiParent = this.MdiParent; frOP.FormClosed += new FormClosedEventHandler(frOPFromClosed); frOP.Show(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void frOPFromClosed(object sender, FormClosedEventArgs e) { frOP = null; }