Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            DataBase db = new DataBase();

            if (db.ConIsOpen())
            {
                FrmMain_chs frmMain = new FrmMain_chs();
                Hide();
                frmMain.Show();
            }
            else
            {
                MessageBox.Show("连接数据库失败!");
                Application.Exit();
            }
        }
Beispiel #2
0
 public FrmLoginFile_chs(FrmMain_chs frmMian)
 {
     InitializeComponent();
     frmMain = frmMian;             //将传过来的FormMain全部赋值给frmMain,这样就可以在这FrmLogin中调用FormMain了
 }