예제 #1
0
 private void DepartmentSelector_ComboLeave(DepartmentSelectorControl.ControlNames controlName)
 {
     if (controlName == DepartmentSelectorControl.ControlNames.Department)
     {
         RefreshItemControl();
         btnView.Enabled = base.Instance.DepartmentId > 0;
         btnEdit.Enabled = btnView.Enabled;
     }
 }
예제 #2
0
 private void DepartmentSelector_EditValueChanged(DepartmentSelectorControl.ControlNames controlName)
 {
     if (controlName == DepartmentSelectorControl.ControlNames.Department)
     {
         base.Instance.DepartmentId = DepartmentSelector.DepartmentId;
         btnView.Enabled = base.Instance.DepartmentId > 0;
         btnEdit.Enabled = btnView.Enabled;
     }
 }