Esempio n. 1
0
        private void Run()
        {
            iInfo = iAutoUpdate.CheckForUpdate();

            BeginInvoke((MethodInvoker) delegate()
            {
                DialogResult = DialogResult.OK;
                Close();
            });
        }
Esempio n. 2
0
        public UpdateDialog(AutoUpdate aAutoUpdate)
        {
            iAutoUpdate = aAutoUpdate;

            InitializeComponent();

            progressBar.IsIndeterminate = true;
            progressBar.Visibility      = Visibility.Visible;
            iUpdateCheckThread          = new Thread(new ThreadStart(() =>
            {
                iInfo = iAutoUpdate.CheckForUpdate();
                PromptForInstall();
            }));
            iUpdateCheckThread.Name         = "UpdateCheck";
            iUpdateCheckThread.IsBackground = true;
            iUpdateCheckThread.Start();
        }