Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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;
                }
            }
        }
Esempio n. 3
0
        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);
                }
            });
        }
Esempio n. 4
0
 internal override void Start()
 {
     TitleInfoService.SetCurrentPage("Set Location");
 }
Esempio n. 5
0
 internal override void Start()
 {
     TitleInfoService.SetCurrentPage("Create Empty Mod");
 }
Esempio n. 6
0
 internal override void Start()
 {
     TitleInfoService.SetCurrentPage("Complete!");
 }
Esempio n. 7
0
 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);
 }