Exemplo n.º 1
0
        private void Button_AddDepartment_Click(object sender, EventArgs e)
        {
            GlobalVars.Log.Info("MainForm: Добавление отдела");
            var form = new DepartmentInfoEditForm {
                Owner = this
            };

            form.ShowDialog();
            FillDepartmentsTreeView();
        }
Exemplo n.º 2
0
 private void Button_EditDepartment_Click(object sender, EventArgs e)
 {
     GlobalVars.Log.Info("MainForm: Редактирование отдела");
     if (TreeView_Departments.SelectedNode != null)
     {
         var selectedDepartmentId = new Guid(TreeView_Departments.SelectedNode.Name);
         var form = new DepartmentInfoEditForm(selectedDepartmentId)
         {
             Owner = this
         };
         form.ShowDialog();
         FillDepartmentsTreeView();
     }
 }