Пример #1
0
        private void dgvDepartment_DoubleClick(object sender, EventArgs e)
        {
            double        id  = Convert.ToDouble(dgvDepartment.SelectedRows[0].Cells["IDS"].Value.ToString());
            DepartmentNew frm = new DepartmentNew();

            frm.DepartmentGet(id);
            frm.Show();
        }
Пример #2
0
 private void tsbDepartmentNew_Click(object sender, EventArgs e)
 {
     try
     {
         DepartmentNew departmentNew = new DepartmentNew();
         departmentNew.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }