示例#1
0
        private void RaiseProjectChanged(Project project)
        {
            Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY);

            GetProjectsCommand.RaiseCanExecuteChanged();

            GetDashboardsCommand.RaiseCanExecuteChanged();
            GetWidgetsCommand.RaiseCanExecuteChanged();

            // Build

            GetAuthorizedResourcesCommand.RaiseCanExecuteChanged();
            GetBuildsCommand.RaiseCanExecuteChanged();
            GetDefinitionsCommand.RaiseCanExecuteChanged();
            GetGeneralSettingsCommand.RaiseCanExecuteChanged();
            GetOptionsCommand.RaiseCanExecuteChanged();
            GetResourcesCommand.RaiseCanExecuteChanged();
            GetSettingsCommand.RaiseCanExecuteChanged();
            GetBuildTagsCommand.RaiseCanExecuteChanged();

            // Git

            GetProjectRepositoriesCommand.RaiseCanExecuteChanged();
            GetPullRequestsCommand.RaiseCanExecuteChanged();

            GetBlobsCommand.RaiseCanExecuteChanged();
            GetCommitsCommand.RaiseCanExecuteChanged();
            GetImportRequestsCommand.RaiseCanExecuteChanged();
            GetItemsCommand.RaiseCanExecuteChanged();
            GetMergesCommand.RaiseCanExecuteChanged();
            GetPushesCommand.RaiseCanExecuteChanged();
            GetRefsCommand.RaiseCanExecuteChanged();
            GetStatsCommand.RaiseCanExecuteChanged();

            // Test

            GetTestPlansCommand.RaiseCanExecuteChanged();

            // Work Item Tracking

            GetClassificationNodesCommand.RaiseCanExecuteChanged();
            GetProjectFieldsWITCommand.RaiseCanExecuteChanged();
            GetQueriesCommand.RaiseCanExecuteChanged();
            GetTagsCommand.RaiseCanExecuteChanged();
            GetTemplatesCommand.RaiseCanExecuteChanged();
            GetWorkItemRelationTypesCommand.RaiseCanExecuteChanged();
            GetWorkItemTypeCategoriesCommand.RaiseCanExecuteChanged();
            GetStatesWITCommand.RaiseCanExecuteChanged();
            GetWorkItemTypesWITCommand.RaiseCanExecuteChanged();
            GetWorkItemTypesFieldsCommand.RaiseCanExecuteChanged();

            GetWorkItemCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }
示例#2
0
        private void RaiseTeamChanged(Team team)
        {
            Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY);

            GetTeamsCommand.RaiseCanExecuteChanged();
            GetDashboardsCommand.RaiseCanExecuteChanged();
            GetWidgetsCommand.RaiseCanExecuteChanged();

            // Work Item Tracking

            GetTemplatesCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }