private void btnConfigurations_Click(object sender, EventArgs e) { try { frmConfiguracion cfg = new frmConfiguracion(); cfg.ShowDialog(this); WSConnector.Instance.Url = cfg.Url; } catch (Exception ex) { MessageBox.Show(ex.Message, "ERROR!!"); } }
private void btnConfigurations_Click(object sender, EventArgs e) { //String exc = ""; try { String url = WSConnector.Instance.Url; frmConfiguracion cfg = new frmConfiguracion(url); cfg.ShowDialog(this); WSConnector.Instance.Url = cfg.Url; WSConnector.Instance.Login(); }catch (Exception ex) { MessageBox.Show(ex.Message, "ERROR!"); } }