Ejemplo n.º 1
0
 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());
     }
 }
Ejemplo n.º 2
0
 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());
     }
 }