/// <summary> /// Displays the dialog. /// </summary> public ServerOnNetwork ShowDialog(string hostname, ApplicationConfiguration configuration) { m_configuration = configuration; if (String.IsNullOrEmpty(hostname)) { hostname = System.Net.Dns.GetHostName(); } m_hostname = hostname; List <string> hostnames = new List <string>(); HostNameCTRL.Initialize(hostname, hostnames); ServersCTRL.Initialize(m_hostname, this.StartingRecordUP, this.MaxRecordsUP, this.CapabilityFilterTB, m_configuration); OkBTN.Enabled = false; if (ShowDialog() != DialogResult.OK) { return(null); } return(m_server); }
/// <summary> /// Displays the dialog. /// </summary> public ApplicationDescription ShowDialog(string hostname, ApplicationConfiguration configuration) { m_configuration = configuration; if (String.IsNullOrEmpty(hostname)) { hostname = Utils.GetHostName(); } m_hostname = hostname; m_server = null; List <string> hostnames = new List <string>(); HostNameCTRL.Initialize(hostname, hostnames); ServersCTRL.Initialize(hostname, configuration); OkBTN.IsEnabled = false; return(m_server); }
/// <summary> /// Displays the dialog. /// </summary> public ApplicationDescription ShowDialog(string hostname, ApplicationConfiguration configuration) { m_configuration = configuration; if (String.IsNullOrEmpty(hostname)) { hostname = System.Net.Dns.GetHostName(); } m_hostname = hostname; List <string> hostnames = new List <string>(); HostNameCTRL.Initialize(hostname, hostnames); ServersCTRL.Initialize(hostname, configuration); OkBTN.Enabled = false; if (ShowDialog() != DialogResult.OK) { return(null); } return(m_server); }