private void button2_Click(object sender, EventArgs e) { this.Hide(); second sf = new second(); sf.dv4 = this; sf.Show(); }
private void button1_Click(object sender, EventArgs e) { this.Hide(); selectedEmployee.Name = textBox1.Text; selectedEmployee.Designation = textBox2.Text; second sf = new second(); sf.Employee = selectedEmployee; sf.MainForm = this; sf.Show(); }