Esempio 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);
//}
        }
Esempio n. 2
0
File: Login.cs Progetto: 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);
     //}
 }