private void Inti() { try { if (ActiveMdiChild != null) { if (this.ActiveMdiChild != organizationForm) { ActiveMdiChild.Close(); } organizationForm = ShowActiveForm(organizationForm, typeof(OrganizationForm)) as OrganizationForm; } else { organizationForm = ShowActiveForm(organizationForm, typeof(OrganizationForm)) as OrganizationForm; } } catch (Exception ex) { WriteLog.WriteLogger(ex.ToString()); } }
private void button1_Click(object sender, EventArgs e) { try { if (ActiveMdiChild != null) { if (this.ActiveMdiChild != organizationForm) { ActiveMdiChild.Close(); } organizationForm = ShowActiveForm(organizationForm, typeof(OrganizationForm)) as OrganizationForm; } else { organizationForm = ShowActiveForm(organizationForm, typeof(OrganizationForm)) as OrganizationForm; } } catch (Exception ex) { WriteLog.WriteLogger(ex.ToString()); } }