// 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
        // Other commands that depend on more do not need to be added
        // as the check is in all CanExecute methods

        private void RaiseCollectionChanged(SelectedCollectionChangedEventArgs args)
        {
            // Work Item Tracking
            PostWorkItemTypeCommand.RaiseCanExecuteChanged();


            // Work Item Tracking Process
        }
 public override void CollectionChanged(SelectedCollectionChangedEventArgs args)
 {
     OutputFileNameAndPath = $@"C:\temp\{args.Collection.Name}-Queries";
 }
        // 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 depend only on Organization Context here
        // Other commands that depend on more do not need to be added
        // as the check is in all CanExecute methods

        private void RaiseCollectionChanged(SelectedCollectionChangedEventArgs args)
        {
            PutWorkItemTypeCommand.RaiseCanExecuteChanged();
        }
Exemplo n.º 4
0
        // 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);
        }
        public override void CollectionChanged(SelectedCollectionChangedEventArgs args)
        {
            var domainType = new DType();

            OutputFileNameAndPath = $@"C:\temp\{args.Collection.Name}-{domainType.GetType().Name}";
        }