Example #1
0
 private void HandleUpdatePresenterResults(UpdatePresenter presenter)
 {
     if (presenter.UpdateReady &&
         presenter.SelectedUpdate.UpdateType == 0 &&
         Application.IsRunningOnMono == false)
     {
         string message = String.Format(CultureInfo.CurrentCulture,
                                        "{0} will install the new version when you exit the application.",
                                        Application.NameAndVersion);
         _messageBoxView.ShowInformation(Owner, message, Owner.Text);
         UpdateFilePath = presenter.LocalFilePath;
     }
 }
Example #2
0
        private void ShowUpdate(ApplicationUpdate update)
        {
            if (Owner.InvokeRequired)
            {
                Owner.Invoke(new Action(() => ShowUpdate(update)), null);
                return;
            }

            var updatePresenter = new UpdatePresenter(ExceptionLogger,
                                                      update, _proxy, Application.Name, Application.VersionWithRevision);

            updatePresenter.Show(Owner);
            HandleUpdatePresenterResults(updatePresenter);
        }
 public void AttachPresenter(UpdatePresenter presenter)
 {
     _presenter = presenter;
 }