Пример #1
0
 protected override void Cancelling()
 {
     PageModel = new ProgressPageModel(Model)
     {
         Background = Model.Background,
         Foreground = Model.Foreground,
         Note = string.Format("It may take a second or two to cancel the {0}", Model.BaseModel.PlannedAction.Verb.Gerundive),
         Title = string.Format("Cancelling {0}", Model.BaseModel.PlannedAction.Verb.Gerundive.UppercaseFirst()),
         Subtitle = "please wait"
     };
 }
Пример #2
0
 protected override void ConfigureApplying()
 {
     PageModel = new ProgressPageModel(Model)
         {
             Background = Model.Background,
             Foreground = Model.Foreground,
             Note = Model.BaseModel.PlannedAction.GetProgressNote(Model.ProductName),
             Title = Model.BaseModel.PlannedAction.GetProgressTitle(Model.ProductName),
             Subtitle = "initializing"
         };
     Model.Activate();
 }
Пример #3
0
 protected override void ConfigureAskExternalRetry()
 {
     Model.Cursor = Cursors.Arrow;
     PageModel = new AskingPageModel(Model)
         {
             Background = Model.Background,
             Foreground = Model.Foreground,
             Title = "An issue occurred while attempting to configure your computer:",
             Question = "Would you like to try to configure your computer again?",
             Details = Model.ExternalEngine.IssueText,
             Glyph = "!"
         };
     Model.Activate();
 }
Пример #4
0
 protected override void ConfigureAskCancel()
 {
     Model.Cursor = Cursors.Arrow;
     PageModel = new AskingPageModel(Model)
     {
         Background = Model.Background,
         Foreground = Model.Foreground,
         Title = string.Format("Are you sure that you want to cancel the {0}?",
                                 Model.BaseModel.PlannedAction.Verb.Gerundive),
         Question = "",
         Details = "",
         Glyph = "?"
     };
 }
Пример #5
0
 protected override void ConfigureStart()
 {
     PageModel = new ButtonPageModel(Model)
     {
         ButtonTitle = "Start",
         Foreground = Model.Foreground,
         Background = Model.Background,
         ButtonSubTitle = Model.BaseModel.ProductName,
         Instructions = Resources.PresentText.ToProductMessage(Model.ProductName),
         Command = new LaunchEngineCommand(Model, false)
     };
     Model.Activate();
 }
Пример #6
0
 protected override void ConfigureRunningExternal()
 {
     Model.Cursor = Cursors.Wait;
     PageModel = new ExternalProgressPageModel(Model, Model.ExternalEngine.PipeName)
         {
             Background = Model.Background,
             Foreground = Model.Foreground,
             Note = string.Format("It may take a few minutes to finish configuring your computer"),
             Title = "Configuring Computer",
             Subtitle = "please wait"
         };
     Model.Activate();
 }
Пример #7
0
 protected override void ConfigureShowRemoveOptions()
 {
     PageModel = Model.ExternalEngine.UninstallOptions;
 }
Пример #8
0
 protected override void ConfigureRemoveApplied()
 {
     PageModel = new MessagePageModel(Model)
         {
             Foreground = Model.Foreground,
             Background = Model.Background,
             Text = Resources.UinstalledText.ToProductMessage(Model.ProductName)
         };
     Model.Activate();
 }
Пример #9
0
 protected override void ConfigureOlder()
 {
     PageModel = new ButtonPageModel(Model)
     {
         ButtonTitle = "Update",
         Foreground = Model.Foreground,
         Background = Model.Background,
         ButtonSubTitle = Model.ProductName,
         Instructions = Resources.AbsentText.ToProductMessage(Model.ProductName),
         Command = new RelayCommand(
             param => Model.BaseModel.Plan(InstallActions.Upgrade),
             param => Model.InstallationState == InstallationState.DetectedOlder)
     };
     Model.Activate();
 }
Пример #10
0
 protected override void ConfigureNewer()
 {
     PageModel = new MessagePageModel(Model)
     {
         Foreground = Model.Foreground,
         Background = Model.Background,
         Text = Resources.NewerText.ToProductMessage(Model.ProductName)
     };
     Model.Activate();
 }
Пример #11
0
 protected override void ConfigureLaunchingNew()
 {
     PageModel = new ProgressPageModel(Model)
         {
             Foreground = Model.Foreground,
             Background = Model.Background,
             Note =
                 string.Format("It sometimes takes a few seconds to start {0} the first time", Model.ProductName),
             Title = string.Format("Starting {0}", Model.ProductName),
             Subtitle = "please wait"
         };
 }
Пример #12
0
 protected override void ConfigureFailed()
 {
     PageModel = new MessagePageModel(Model)
         {
             Foreground = Model.Foreground,
             Background = Model.Background,
             Text = Model.BaseModel.PlannedAction.GetIssueText(Model.ProductName, Model.ErrorCode, Model.ErrorMessage)
         };
     Model.Activate();
 }