private void button1_Click(object sender, EventArgs e) { consulta consultar = new consulta(); if (textBox1.Text == "123" && textBox2.Text == "1234") { consultar.ShowDialog(); } }
private void button3_Click(object sender, EventArgs e) { consulta consul = new consulta(); consul.ShowDialog(); }