private void ButtonPackageEasy_OnClick(object sender, RoutedEventArgs e) { InstallationContext.PackageType = PackageType.DeveloperLite; InstallationContext.AddNewModFromTemplate = this.CheckBoxCreateEmptyMod.IsChecked ?? true; TitleInfoService.SetPackageSelection("DevLite"); this.OnNavigate(InstallationContext.AddNewModFromTemplate ? CommandCreateEmptyMod : CommandNext); }
internal override void Start() { TitleInfoService.SetCurrentPage("Error"); if (InstallationContext.Exception != null) { this.ExceptionInfo.Text = InstallationContext.Exception.Message; this.ExceptionInfo.Text += "\n" + InstallationContext.Exception.StackTrace; if (InstallationContext.Exception.InnerException != null) { this.ExceptionInfo.Text += "\n\nInner Exception:\n"; this.ExceptionInfo.Text += InstallationContext.Exception.InnerException.Message; this.ExceptionInfo.Text += InstallationContext.Exception.InnerException.StackTrace; } } }
internal override void Start() { TitleInfoService.SetCurrentPage("Installing"); Task.Factory.StartNew(() => { try { var context = new PackageStatusContext(); context.ProgressUpdate += this.Context_ProgressUpdate; context.MessageUpdate += this.Context_MessageUpdate; PackageManager.InstallPackage(context); this.Complete(); } catch (Exception ex) { this.Failure(ex); } }); }
internal override void Start() { TitleInfoService.SetCurrentPage("Set Location"); }
internal override void Start() { TitleInfoService.SetCurrentPage("Create Empty Mod"); }
internal override void Start() { TitleInfoService.SetCurrentPage("Complete!"); }
internal override void Start() { TitleInfoService.SetCurrentPage("Dev Package Selection"); TitleInfoService.SetPackageSelection(string.Empty); }
private void ButtonPlayerPackage_OnClick(object sender, RoutedEventArgs e) { InstallationContext.PackageType = PackageType.Player; TitleInfoService.SetPackageSelection("Player"); this.OnNavigate(CommandPlayerPackage); }