private void toolStripButton1_Click(object sender, EventArgs e) { this.Hide(); EmployeeInfoScreen form = new EmployeeInfoScreen(); form.ShowDialog(); }
private void dataGridView1_DoubleClick(object sender, EventArgs e) { int rowToUpdate = Loaddatagridview1.Rows.GetFirstRow(DataGridViewElementStates.Selected); int id = Convert.ToInt16(Loaddatagridview1.Rows[rowToUpdate].Cells["Emp_id"].Value); EmployeeInfoScreen form = new EmployeeInfoScreen(); form.empid = id; form.isupdate = true; form.ShowDialog(); }