Beispiel #1
0
 public void PerformUpdate(UpdateInstructions instructions)
 {
     foreach (UpdateInstructions.PackageData packageData in instructions.Packages)
     {
         this.ProcessPackage(instructions.ProgramExecutableLocation, new FileInfo(packageData.Path));
     }
 }
Beispiel #2
0
 internal MainWindow(UpdateInstructions instructions)
 {
     this.Instructions = instructions;
     this.InitializeComponent();
     this.UpdateVersionInfoLabel = this.Instructions.LatestVersion;
     this.titlePrefix            = this.GetTitle();
     this.TitleLabel             = this.titlePrefix;
     this.PrepareReleaseNotes();
 }
Beispiel #3
0
        //[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();
        }