예제 #1
0
        private void WorkerOnRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs runWorkerCompletedEventArgs)
        {
            if (runWorkerCompletedEventArgs.Error != null)
            {
                Application.Exit();
                Common.Start(_localRelease, true);
                return;
            }
            _remoteRelease = runWorkerCompletedEventArgs.Result as ReleaseList;

            if (_localRelease.Compare(_remoteRelease) == 0)
            {
                Application.Exit();
                Common.Start(_localRelease, false);
                return;
            }
            //Hide();

            if (CheckProcessing() != DialogResult.OK)
            {
                Application.Exit();
                return;
            }
            var form = new UpdateForm(_localRelease, _remoteRelease);

            form.ShowDialog();
        }
예제 #2
0
        private void WorkerOnRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs runWorkerCompletedEventArgs)
        {
            if (runWorkerCompletedEventArgs.Error != null)
            {
                Application.Exit();
                Common.Start(_worker.LocalManifest, true);
                return;
            }

            if (!_worker.HasNewVersion)
            {
                Application.Exit();
                Common.Start(_worker.LocalManifest, false);
                return;
            }
            //Hide();

            if (CheckProcessing() != DialogResult.OK)
            {
                Application.Exit();
                return;
            }
            var form = new UpdateForm(_worker.LocalManifest, _worker.RemoteManifest);

            form.ShowDialog();
        }