Exemplo n.º 1
0
        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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public CloseBottomButtonModel(PagedViewModel model, int exitCode)
     : base(model)
 {
     Command = new RelayCommand(param=>model.Close(exitCode));
 }
Exemplo n.º 5
0
 public StateBottomButton(PagedViewModel model, InstallationState state)
     : base(model)
 {
     Command = new RelayCommand(param => Model.InstallationState = state);
 }
Exemplo n.º 6
0
 public PlanBottomButton(PagedViewModel model, InstallActions action)
     : base(model)
 {
     Command = new RelayCommand(param => Model.BaseModel.Plan(action));
 }
Exemplo n.º 7
0
 public CancelBottomButtonModel(PagedViewModel model)
     : base(model)
 {
     Command = new RelayCommand(param => Model.Cancelled = true, param => Model.Cancelled != true & Model.InstallationState == InstallationState.Applying);
 }