private void bunifuFlatButton3_Click(object sender, EventArgs e) { String username = bunifuMaterialTextbox1.Text; String password = bunifuMaterialTextbox2.Text; Nguoidung nguoidung = new Nguoidung(username, password); if (bus_nguoidung.checkNguoidung(nguoidung)) { HomeForm homeform = new HomeForm(); this.Hide(); homeform.Show(); } else { MessageBox.Show("Please input again!!!!"); } }
public ConsulterMoniteurs(HomeForm hf) { InitializeComponent(); homeForm = hf; con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDBFilename=C:\AlexiD\Stages2016.mdf;Integrated Security=True;Connect Timeout=30"); }