private void FillFromLocal()
        {
            DatasourceConfiguration conf = MDFeNetConfig.ReadFromLocal();

            cbTipoBanco.SelectedValue = conf.DataProvider;
            txServidor.Text           = conf.Datasource;
            txUsuario.Text            = conf.UserId;
            txSenha.Password          = conf.Password;
            txNomeBanco.Text          = conf.InitialCatalog;
        }
Ejemplo n.º 2
0
 private void btExecutar_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         DatasourceConfiguration conf = MDFeNetConfig.ReadFromLocal();
         DataTable dt = conf.RetrieveDataFromSql(txSQL.Text);
         dataGrid.ItemsSource = dt.DefaultView;
     }
     catch (Exception ex)
     {
         MsgBox.SimpleText(ex.Message);
     }
 }