Пример #1
0
 private void barButtonItem3_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();
         frmTangQua f = new frmTangQua();
         AddTabControl(f, "Tặng quà");
         if (splash.IsSplashFormVisible || statesplash == true)
         {
             SplashScreenManager.CloseForm();
             statesplash = false;
         }
     }
     catch
     {
         if (splash.IsSplashFormVisible || statesplash == true)
         {
             SplashScreenManager.CloseForm();
             statesplash = false;
         }
     }
     //    t.Abort();
 }
Пример #2
0
 public frmTangQuaSua(frmTangQua f, int tqid, string quycach, string ghichu)
 {
     InitializeComponent();
     f1       = f;
     tqid1    = tqid;
     quycach1 = quycach;
     ghichu1  = ghichu;
 }
Пример #3
0
 public frmTangQuaAdd(frmTangQua f)
 {
     InitializeComponent();
     f1 = f;
 }