private void RaiseProcessChanged(Domain.Core.Process process) { Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY); GetWorkItemTypesWITPCommand.RaiseCanExecuteChanged(); GetBehaviorsWITPCommand.RaiseCanExecuteChanged(); GetSystemControlsCommand.RaiseCanExecuteChanged(); GetRulesCommand.RaiseCanExecuteChanged(); Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks); }
private void RaiseWorkItemTypeWITPChanged(Domain.WorkItemTrackingProcess.WorkItemType workItemType) { Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY); GetFieldsWITPCommand.RaiseCanExecuteChanged(); GetRulesCommand.RaiseCanExecuteChanged(); GetStatesWITPCommand.RaiseCanExecuteChanged(); GetSystemControlsCommand.RaiseCanExecuteChanged(); GetWorkItemTypesBehaviorsCommand.RaiseCanExecuteChanged(); Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks); }
// NOTE(crhodes) // RaiseCanExecuteChanged for any Command that is dependent on Context. // N.B. Need to add to each Context Item for button to be enabled. //++ Add Commands that only depend on Organization Context here private void RaiseCollectionChanged(SelectedCollectionChangedEventArgs args) { Int64 startTicks = Log.EVENT_HANDLER($"Enter: ({args.GetType()}) {args.Collection.Name}", Common.LOG_CATEGORY); GetCoreProcessesCommand.RaiseCanExecuteChanged(); GetProjectsCommand.RaiseCanExecuteChanged(); GetTeamsCommand.RaiseCanExecuteChanged(); // Accounts GetAccountsCommand.RaiseCanExecuteChanged(); // Approvals and Checks // Artifacts // Artifacts Package Types // Audit // Build GetControllersCommand.RaiseCanExecuteChanged(); // Cloud Load Test // Dashboard GetDashboardsCommand.RaiseCanExecuteChanged(); GetWidgetsCommand.RaiseCanExecuteChanged(); // TODO(crhodes) // Move these under appropriate Category GetWidgetsCommand.RaiseCanExecuteChanged(); GetSystemControlsCommand.RaiseCanExecuteChanged(); GetRulesCommand.RaiseCanExecuteChanged(); // Git GetRepositoriesCommand.RaiseCanExecuteChanged(); // Graph GetGroupsCommand.RaiseCanExecuteChanged(); GetUsersCommand.RaiseCanExecuteChanged(); // Work Item Tracking (WIT) GetArtifactLinkTypesCommand.RaiseCanExecuteChanged(); GetOrganizationFieldsWITCommand.RaiseCanExecuteChanged(); GetWorkItemIconsCommand.RaiseCanExecuteChanged(); GetWorkItemRelationTypesCommand.RaiseCanExecuteChanged(); // Work Item Tracking Process (WITP) // TODO(crhodes) // Decide if want to have a naming convention // VERBAreaResource // e.g. GetWITPBehaviorsCommand // GetWITPListsCommand // Get WITPProcessesCommand GetBehaviorsWITPCommand.RaiseCanExecuteChanged(); GetListsCommand.RaiseCanExecuteChanged(); GetProcessesWITPCommand.RaiseCanExecuteChanged(); Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks); }