示例#1
0
        private void ux_buttonFindServers_Click(object sender, EventArgs e)
        {
            WebServicesLocator wsl = new WebServicesLocator(_webServiceURLs);

            wsl.StartPosition = FormStartPosition.CenterParent;
            if (DialogResult.OK == wsl.ShowDialog(this))
            {
                ux_comboboxServer.DataSource = new BindingSource(_webServiceURLs, null);
            }
//SearchNetworkForWebServers(_webServiceURLs);
//if (_webServiceURLs != null && _webServiceURLs.Count > 0)
//{
//    ux_comboboxServer.DisplayMember = "Key";
//    ux_comboboxServer.ValueMember = "Value";
//    ux_comboboxServer.DataSource = new BindingSource(_webServiceURLs, null);
//}
        }
示例#2
0
文件: Login.cs 项目: egacheru/G2
 private void ux_buttonFindServers_Click(object sender, EventArgs e)
 {
     WebServicesLocator wsl = new WebServicesLocator(_webServiceURLs);
     wsl.StartPosition = FormStartPosition.CenterParent;
     if (DialogResult.OK == wsl.ShowDialog(this))
     {
         ux_comboboxServer.DataSource = new BindingSource(_webServiceURLs, null);
     }
     //SearchNetworkForWebServers(_webServiceURLs);
     //if (_webServiceURLs != null && _webServiceURLs.Count > 0)
     //{
     //    ux_comboboxServer.DisplayMember = "Key";
     //    ux_comboboxServer.ValueMember = "Value";
     //    ux_comboboxServer.DataSource = new BindingSource(_webServiceURLs, null);
     //}
 }