Exemplo n.º 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"
     };
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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 = "?"
     };
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 7
0
 protected override void ConfigureShowRemoveOptions()
 {
     PageModel = Model.ExternalEngine.UninstallOptions;
 }
Exemplo n.º 8
0
 protected override void ConfigureRemoveApplied()
 {
     PageModel = new MessagePageModel(Model)
         {
             Foreground = Model.Foreground,
             Background = Model.Background,
             Text = Resources.UinstalledText.ToProductMessage(Model.ProductName)
         };
     Model.Activate();
 }
Exemplo n.º 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();
 }
Exemplo n.º 10
0
 protected override void ConfigureNewer()
 {
     PageModel = new MessagePageModel(Model)
     {
         Foreground = Model.Foreground,
         Background = Model.Background,
         Text = Resources.NewerText.ToProductMessage(Model.ProductName)
     };
     Model.Activate();
 }
Exemplo n.º 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"
         };
 }
Exemplo n.º 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();
 }