private void companyListMenuItem_Click(object sender, EventArgs e) { try { forms.companyList myForm = (forms.companyList)this.FindForm("companyList"); if (myForm == null || myForm.IsDisposed) { myForm = new forms.companyList(); myForm.Name = "companyList"; } myForm.Show(dockPanel); } catch (Exception er) { this.ShowError(er); } }
private void companyListMenuItem_Click(object sender, EventArgs e) { try { forms.companyList myForm = (forms.companyList)this.FindForm("companyList"); if (myForm == null || myForm.IsDisposed) { myForm = new forms.companyList(); myForm.Name = "companyList"; } myForm.Show(dockPanel); } catch (Exception er) { this.ShowError(er); common.fileFuncs.WriteLog(this.Name + common.Consts.constTab + er.ToString()); } }