Exemplo n.º 1
0
 private void LoginButton_Click(object sender, EventArgs e)
 {
     controller = new AccountBLL();
     if (controller.Login(tbUsername.Text, tbPassword.Text))
     {
         MessageBox.Show("Login thanh cong");
         LoginForm.getInstance().Hide();
         MainUI main = new MainUI(tbUsername.Text);
         main.Show();
         //MainUIWPF main = new MainUIWPF();
         //main.
     }
     else
     {
         MessageBox.Show("That bai");
     }
 }
Exemplo n.º 2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(LoginForm.getInstance());
 }
Exemplo n.º 3
0
 //logout
 private void button1_Click(object sender, EventArgs e)
 {
     this.Dispose();
     LoginForm.getInstance().Show();
 }