private void button1_Click(object sender, EventArgs e) { DataAcces dataAcces = new DataAcces(); Home home = new Home(); string user=textBox1.Text; string pass=textBox2.Text; if (dataAcces.Login(user, pass) == true) { home.Show(); this.Hide(); } else MessageBox.Show("Error en el usuario o contraseƱa"); }
public ClientOrder(Home home) { formulario = home; InitializeComponent(); }