コード例 #1
0
        public void PageShowed()
        {
            if (patchRunner == null)
            {
                patchRunner = new PatchRunner(DetectionPage.Instance.Path);
                patchRunner.LoadData();

                var updatesChecker = new UpdatesChecker();
                updatesChecker.ShowDialog();

                var thread = new Thread(() =>
                {
                    patchRunner.Patch();
                });
                thread.SetApartmentState(ApartmentState.STA);
                thread.Start();

                canGoNext = true;
                MainWindow.Instance.RevalidateButtons();
            }
        }