/// <summary> /// Handles the VisibleChanged event of the InstallUpdateControl control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void InstallUpdateControl_VisibleChanged(object sender, EventArgs e) { if (this.Visible) { var loadingForm = new NoControlsForm(); loadingForm.Show(this.Parent); Application.DoEvents(); this.SetupServerInstallation(); this.SetupWindowsInstallation(); this.SetupNavigation(); loadingForm.Close(); } }
/// <summary> /// Handles the VisibleChanged event of the ConfigureControl control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void ConfigureControl_VisibleChanged(object sender, EventArgs e) { if (this.Visible) { // TODO: this should be a singleton instead var loadingForm = new NoControlsForm(); loadingForm.Show(this.Parent); Application.DoEvents(); this.RefreshServerLogin(); this.LoadServerConfig(); this.LoadWindowsConsoleConfig(); loadingForm.Close(); } }