private void loadFile() { //Obtendo nós do xml de conexão, para verificar se está vazio string Servidor, BD; Configuracao.LerConfiguracao(out Servidor, out BD); if (Servidor == String.Empty || BD == String.Empty) { using (Config form = new Config()) { if (form.ShowDialog() == DialogResult.Cancel) { return; } } } d = new Dados(); layoutsComboBox.DataSource = d.Layouts(); }
private void button2_Click(object sender, EventArgs e) { using (Config form = new Config()) { if (form.ShowDialog() == DialogResult.OK) { d = new Dados(); layoutsComboBox.DataSource = d.Layouts(); } } }