コード例 #1
0
 private void toolStripMenuItem15_Click(object sender, EventArgs e)
 {
     using (ProfileForm form = new ProfileForm(Helper.CompanyID))
     {
         DialogResult dr = form.ShowDialog();
         if (dr == DialogResult.OK)
         {
             // LoadingCalendarLite();
         }
     }
 }
コード例 #2
0
 private void LoadCompany()
 {
     try
     {
         c = Company.Select();
         if (string.IsNullOrEmpty(c.Name))
         {
             using (ProfileForm form = new ProfileForm(""))
             {
                 DialogResult dr = form.ShowDialog();
                 if (dr == DialogResult.OK)
                 {
                     LoadUsers();
                 }
             }
         }
         else
         {
             Helper.CompanyID = c.Id;
             LoadUsers();
         }
     }
     catch (Exception c)
     {
         // MessageBox.Show(c.Message);
         using (ProfileForm form = new ProfileForm(""))
         {
             DialogResult dr = form.ShowDialog();
             if (dr == DialogResult.OK)
             {
                 if (string.IsNullOrEmpty(Helper.CompanyID))
                 {
                     LoadUsers();
                 }
             }
         }
     }
 }