示例#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();
 }