private void button1_Click_1(object sender, EventArgs e) { this.Hide(); emphome2 emp = new emphome2(label2.Text, label6.Text); emp.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { if (label5.Text == "admin") { this.Hide(); emphome rpt = new emphome(label4.Text, label5.Text); rpt.ShowDialog(); } else { this.Hide(); emphome2 rpt = new emphome2(label4.Text, label5.Text); rpt.ShowDialog(); } }