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();
     }
 }