Exemplo n.º 1
0
 public FrmDoctorView1(BangnaControl bc, FrmSplash splash)
 {
     this.bc = bc;
     login   = new Login(bc, splash);
     login.ShowDialog(this);
     new Thread(() =>
     {
         Thread.CurrentThread.IsBackground = true;
         /* run your code here */
         bc.bcDB = new objdb.BangnaHospitalDB(bc.conn);
         bc.getInit();
     }).Start();
     splash.Dispose();
     if (login.LogonSuccessful.Equals("1"))
     {
         initConfig();
         new Thread(() =>
         {
             Thread.CurrentThread.IsBackground = true;
             /* run your code here */
         }).Start();
     }
     else
     {
         Application.Exit();
     }
 }
Exemplo n.º 2
0
 public Login(BangnaControl bc, FrmSplash splash)
 {
     InitializeComponent();
     this.bc     = bc;
     this.splash = splash;
     initConfig();
     //new LogWriter("e", "Login InitializeComponent Start Form");
 }