private void DomainNameCTRL_HostConnected(object sender, SelectHostCtrlEventArgs e) { try { m_domain = e.Hostname; HostsCTRL.Initialize(m_domain); m_hostname = null; OkBTN.Enabled = false; } catch (Exception exception) { GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception); } }
private void DomainNameCTRL_HostConnected(object sender, SelectHostCtrlEventArgs e) { try { m_domain = e.Hostname; HostsCTRL.Initialize(m_domain); m_hostname = null; OkBTN.IsEnabled = false; } catch (Exception exception) { GuiUtils.HandleException(String.Empty, GuiUtils.CallerName(), exception); } }
/// <summary> /// Displays the dialog. /// </summary> public string ShowDialog(string domain) { if (String.IsNullOrEmpty(domain)) { domain = ConfigUtils.GetComputerWorkgroupOrDomain(); } m_domain = domain; DomainNameCTRL.Initialize(m_domain, null); HostsCTRL.Initialize(m_domain); OkBTN.Enabled = false; if (ShowDialog() != DialogResult.OK) { return(null); } return(m_hostname); }
/// <summary> /// Displays the dialog. /// </summary> public string ShowDialog(string domain) { if (String.IsNullOrEmpty(domain)) { return(null); } m_domain = domain; DomainNameCTRL.Initialize(m_domain, null); HostsCTRL.Initialize(m_domain); OkBTN.Enabled = false; if (ShowDialog() != DialogResult.OK) { return(null); } return(m_hostname); }
/// <summary> /// Displays the dialog. /// </summary> public string ShowDialog(string domain) { if (String.IsNullOrEmpty(domain)) { domain = CredentialCache.DefaultNetworkCredentials.Domain; } m_domain = domain; DomainNameCTRL.Initialize(m_domain, null); HostsCTRL.Initialize(m_domain); OkBTN.IsEnabled = false; Popup myPopup = new Popup(); myPopup.Child = this; myPopup.IsOpen = true; return(m_hostname); }