コード例 #1
0
        public Commands(BuilderViewModel viewModel)
        {
            m_viewModel = viewModel;

            OnSelectSolution      = new DelegateCommand <object>(_ => OpenSolution());
            OnSelectBuildSolution = new DelegateCommand <MainWindow>(BuildSolution);
            OnSelectCreateTimelineFromEventsFile = new DelegateCommand <object>(_ => CreateTimeline());
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();

            m_viewModel = new BuilderViewModel();
            m_viewModel.BuildMessages.CollectionChanged += ScrollBuildMessageToBottom;

            DataContext = m_viewModel;
        }
コード例 #3
0
        private string BuildEventsFileName(BuilderViewModel viewModel)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("Events - ");
            builder.Append($"{Path.GetFileNameWithoutExtension(viewModel.Solution.Path)} - ");

            if (viewModel.CurrentBuildConfiguration.Project != SolutionCompiler.s_CompileFullSolution)
            {
                builder.Append($"{viewModel.CurrentBuildConfiguration.Project} - ");
            }

            builder.Append($"{viewModel.CurrentBuildConfiguration.Target} - ");
            builder.Append($"{viewModel.CurrentBuildConfiguration.ConfigurationPlatform.Configuration} - ");
            builder.Append($"{viewModel.CurrentBuildConfiguration.ConfigurationPlatform.Platform}");

            return(builder.ToString());
        }