private void DoFastAddInfo() { TabPageEdit tab = tabs[xtabItemInfo.SelectedTabPageIndex]; DataRow drFoc = tab.GridViewEdit.GetFocusedDataRow(); if (drFoc == null) { return; } Form frmEx = StaticFunctions.GetExistedChildForm(this.ParentForm, "frmBsuSetQueryFastAddInfo"); if (frmEx != null) { frmEx.Close(); frmEx.Dispose(); } frmBsuSetQueryFastAddInfo frm = new frmBsuSetQueryFastAddInfo(); frm.Q_OR_E = "E"; frm.SetClass = drFoc["Menus_Class"].ToString(); frm.StrType = "2"; frm.MdiParent = this.ParentForm; frm.FrmEditorBaseP = this; frm.Show(); }
private void DoFastSet() { Form frmEx = StaticFunctions.GetExistedChildForm(this.ParentForm, "frmBsuSetQueryFastAddInfo"); if (frmEx != null) { frmEx.Close(); frmEx.Dispose(); } frmBsuSetQueryFastAddInfo frm = new frmBsuSetQueryFastAddInfo(); frm.Q_OR_E = "E"; frm.StrType = "1"; frm.MdiParent = this.ParentForm; frm.FrmEditorBaseP = this; frm.Show(); }