Beispiel #1
0
        private void StartUrlTesting()
        {
            var  host = SelectedMasters.First();
            Pool pool = host != null?Helpers.GetPoolOfOne(host.Connection) : null;

            host = pool != null?pool.HostsToUpgrade().First() : null;

            if (host == null)
            {
                ShowBottomError(Messages.UPDATES_WIZARD_CONNECTION_LOST);
                ShowSideIcon(Resources._000_Abort_h32bit_16);
                OnPageUpdated();
                return;
            }

            var action = new TestLocationInstallerAction(host, InstallMethodConfig);

            action.Completed += action_Completed;
            ShowSideIcon(Resources.ajax_loader);
            ChangeInputEnablement(false);
            buttonTest.Enabled = true;
            buttonTest.Text    = Messages.ROLLING_UPGRADE_BUTTON_LABEL_STOP;
            testingAction      = action;
            action.RunAsync();
        }
Beispiel #2
0
 // The URL-Testing is not be able to cancel, as it is implemented as a plug-in on server side.
 // What we do is:
 //   1. Ignore the Completed event of the action, and
 //   2. Recover the button text and side icon.
 private void StopUrlTesting()
 {
     buttonTest.Text          = Messages.ROLLING_UPGRADE_BUTTON_LABEL_TEST;
     testingAction.Completed -= action_Completed;
     testingAction            = null;
     ChangeInputEnablement(true);
     HideSideIcon();
 }
Beispiel #3
0
        private void buttonTest_Click(object sender, EventArgs e)
        {
            var  host = SelectedMasters.First();
            Pool pool = host != null?Helpers.GetPoolOfOne(host.Connection) : null;

            host = pool != null?pool.HostsToUpgrade().First() : null;

            if (host == null)
            {
                ShowBottomError(Messages.UPDATES_WIZARD_CONNECTION_LOST);
                ShowSideIcon(Resources._000_Abort_h32bit_16);
                OnPageUpdated();
                return;
            }

            var action = new TestLocationInstallerAction(host, InstallMethodConfig);

            action.Completed += action_Completed;
            ShowSideIcon(Resources.ajax_loader);
            ChangeInputEnablement(false);
            action.RunAsync();
        }