Exemplo n.º 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);
//}
        }
Exemplo n.º 2
0
Arquivo: Login.cs Projeto: 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);
     //}
 }