public void PerformUpdate(UpdateInstructions instructions) { foreach (UpdateInstructions.PackageData packageData in instructions.Packages) { this.ProcessPackage(instructions.ProgramExecutableLocation, new FileInfo(packageData.Path)); } }
internal MainWindow(UpdateInstructions instructions) { this.Instructions = instructions; this.InitializeComponent(); this.UpdateVersionInfoLabel = this.Instructions.LatestVersion; this.titlePrefix = this.GetTitle(); this.TitleLabel = this.titlePrefix; this.PrepareReleaseNotes(); }
//[Apartment(ApartmentState.STA)] //[STAThread] public void Test_Manual_NoReleaseNotes() { var instructions = new UpdateInstructions() { LatestVersion = "9.9.9.2", Packages = new List <UpdateInstructions.PackageData>() { new UpdateInstructions.PackageData() { Version = "9.8" }, new UpdateInstructions.PackageData() { Version = "9.9.9.2" } } }; var win = new MainWindow(instructions); win.ShowDialog(); }