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); }
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)); }
public StateBottomButton(PagedViewModel model, InstallationState state) : base(model) { Command = new RelayCommand(param => Model.InstallationState = state); }
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); }