Example #1
0
 public BuildProgressViewModel(BuildViewModel buildViewModel)
     : base(buildViewModel)
 {
     _buildViewModel = buildViewModel;
     _closeCommand   = new DelegateCommand(Close);
     _exitText       = SR.Cancel;
 }
 public BuildErrorViewModel(BuildViewModel buildViewModel, string message, string hint = null)
     : base(buildViewModel)
 {
     _buildViewModel = buildViewModel;
     _message        = message;
     _hint           = hint;
 }
 public BuildUnknownErrorViewModel(BuildViewModel buildViewModel, BuildErrorLog error)
     : base(buildViewModel)
 {
     _buildViewModel = buildViewModel;
     _message        = error.Message;
     _helpLink       = error.HelpLink;
     _reportText     = error.ToString(true, true);
     _closeCommand   = new DelegateCommand <bool>(Close);
 }
Example #4
0
        public void Build()
        {
            if (_isChanged)
            {
                Save(false);

                if (_isChanged)
                {
                    return;
                }
            }

            var viewModel = new BuildViewModel(this);

            AppService.UI.ShowBuild(viewModel);
        }