public DynamicShowExternalOptionsButtonModel(PagedViewModel model)
            : base(model)
        {
            if (model.ExternalEngine == null  || !model.ExternalEngine.IsValid)
                Command = new RelayCommand(param => Model.BaseModel.Plan(InstallActions.Remove));

            Command = new RelayCommand(param => Model.InstallationState = InstallationState.ShowingRemoveOptions);
        }
示例#2
0
 public UrlBottomButtonModel(PagedViewModel model, string url)
     : base(model)
 {
     _url = url;
     Command = new RelayCommand(param =>LaunchUrl(), param => ! string.IsNullOrWhiteSpace(_url));
 }
 public StartExternalBottomButton(PagedViewModel model, InstallActions postExecuteAction)
     : base(model)
 {
     Command = new RelayCommand(p => ExecuteExternal(postExecuteAction));
 }
 public CloseBottomButtonModel(PagedViewModel model, int exitCode)
     : base(model)
 {
     Command = new RelayCommand(param=>model.Close(exitCode));
 }
示例#5
0
 public StateBottomButton(PagedViewModel model, InstallationState state)
     : base(model)
 {
     Command = new RelayCommand(param => Model.InstallationState = state);
 }
示例#6
0
 public PlanBottomButton(PagedViewModel model, InstallActions action)
     : base(model)
 {
     Command = new RelayCommand(param => Model.BaseModel.Plan(action));
 }
 public CancelBottomButtonModel(PagedViewModel model)
     : base(model)
 {
     Command = new RelayCommand(param => Model.Cancelled = true, param => Model.Cancelled != true & Model.InstallationState == InstallationState.Applying);
 }