Example #1
0
        // Other commands that depend on more do not need to be added
        // as the check is in all CanExecute methods

        private void RaiseBuildChanged(Domain.Build.Build build)
        {
            Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY);

            GetBuildInfoCommand.RaiseCanExecuteChanged();
            GetBuildChangesCommand.RaiseCanExecuteChanged();
            GetBuildLogsCommand.RaiseCanExecuteChanged();
            GetBuildWorkItemRefsCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }
Example #2
0
        private void CallBuildDependentStuff(Domain.Build.Build build)
        {
            if (!(build is null))
            {
                // Info about Build

                EventAggregator.GetEvent <GetBuildInfoEvent>().Publish(
                    new GetBuildInfoEventArgs()
                {
                    Organization = _collectionMainViewModel.SelectedCollection.Organization,
                    Project      = _contextMainViewModel.Context.SelectedProject,
                    Build        = build
                });

                // Info about Changes

                EventAggregator.GetEvent <GetBuildChangesEvent>().Publish(
                    new GetBuildChangesEventArgs()
                {
                    Organization = _collectionMainViewModel.SelectedCollection.Organization,
                    Project      = _contextMainViewModel.Context.SelectedProject,
                    Build        = build
                });

                // Info about Logs

                EventAggregator.GetEvent <GetBuildLogsEvent>().Publish(
                    new GetBuildLogsEventArgs()
                {
                    Organization = _collectionMainViewModel.SelectedCollection.Organization,
                    Project      = _contextMainViewModel.Context.SelectedProject,
                    Build        = build
                });

                // Info about WorkItemRefs

                EventAggregator.GetEvent <GetBuildWorkItemRefsEvent>().Publish(
                    new GetBuildWorkItemRefsEventArgs()
                {
                    Organization = _collectionMainViewModel.SelectedCollection.Organization,
                    Project      = _contextMainViewModel.Context.SelectedProject,
                    Build        = build
                });
            }
        }