private void button5_Click(object sender, EventArgs e) { this.Hide(); Home f2 = new Home(); f2.ShowDialog(); }
private void button5_Click(object sender, EventArgs e) { this.Hide(); Home f2 = new Home(); Service1.Service1Client client = new Service1.Service1Client(); ProductTable.DataSource = client.ShowProductTable(); f2.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { string name = textBox2.Text; string pass = textBox1.Text; if (name == "user1" && pass == "user1") { this.Hide(); Home f2 = new Home(); f2.ShowDialog(); } else { MessageBox.Show("Invalid Credentials! Try again!"); } }