示例#1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.Hide();
            EmployeeInfoScreen form = new EmployeeInfoScreen();

            form.ShowDialog();
        }
示例#2
0
        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();
        }