protected void DepartmentLb_SelectedValueChanged(object sender, EventArgs e) { try { DepartmentForm dF = new DepartmentForm(Departments.departments[departmentsLb.SelectedIndex]); dF.Show(); } catch (Exception exception) { Console.WriteLine(exception); } }
private void addDepartmentBtn_Click(object sender, EventArgs e) { DepartmentForm dF = new DepartmentForm(); dF.Show(); }