Example #1
0
 private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         if (!splash.IsSplashFormVisible)
         {
             //  splashScreenManager.ShowWaitForm();
             SplashScreenManager.ShowForm(this, typeof(frmWait), true, true);
         }
         statesplash = true;
         //      Thread t = new Thread(new ThreadStart(StartForm));
         //      t.Start();
         frmGDWUAll f = new frmGDWUAll();
         AddTabControl(f, "Giao dịch");
         //      t.Abort();
         if (splash.IsSplashFormVisible || statesplash == true)
         {
             SplashScreenManager.CloseForm();
             statesplash = false;
         }
     }
     catch
     {
         if (splash.IsSplashFormVisible || statesplash == true)
         {
             SplashScreenManager.CloseForm();
             statesplash = false;
         }
     }
 }
Example #2
0
 private void frmChild_Closing(object sender, FormClosedEventArgs e)
 {
     frmGDWUAll frm3 = new frmGDWUAll();
     //frm3.frmGDWUAll_Load(sender, e);
     //  frm3.frmChild_Closing(sender, e);
 }