private void DepartmentSelector_ComboLeave(DepartmentSelectorControl.ControlNames controlName) { if (controlName == DepartmentSelectorControl.ControlNames.Department) { RefreshItemControl(); btnView.Enabled = base.Instance.DepartmentId > 0; btnEdit.Enabled = btnView.Enabled; } }
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; } }