コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
ファイル: HostListDlg.cs プロジェクト: mcooper87/UA-.NET
        /// <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);
        }
コード例 #4
0
        /// <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);
        }
コード例 #5
0
        /// <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);
        }