Exemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     Saurus.Saurus_BDDataSet saurus_BDDataSet = ((Saurus.Saurus_BDDataSet)(this.FindResource("saurus_BDDataSet")));
     // Load data into the table Cliente. You can modify this code as needed.
     Saurus.Saurus_BDDataSetTableAdapters.ClienteTableAdapter saurus_BDDataSetClienteTableAdapter = new Saurus.Saurus_BDDataSetTableAdapters.ClienteTableAdapter();
     saurus_BDDataSetClienteTableAdapter.Fill(saurus_BDDataSet.Cliente);
     System.Windows.Data.CollectionViewSource clienteViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("clienteViewSource")));
     clienteViewSource.View.MoveCurrentToFirst();
 }
Exemplo n.º 2
0
 public Deletar()
 {
     InitializeComponent();
     // carregando os dados da tabela
     Saurus.Saurus_BDDataSet saurus_BDDataSet = ((Saurus.Saurus_BDDataSet)(this.FindResource("saurus_BDDataSet")));
     // Load data into the table Cliente. You can modify this code as needed.
     Saurus.Saurus_BDDataSetTableAdapters.ClienteTableAdapter saurus_BDDataSetClienteTableAdapter = new Saurus.Saurus_BDDataSetTableAdapters.ClienteTableAdapter();
     saurus_BDDataSetClienteTableAdapter.Fill(saurus_BDDataSet.Cliente);
     System.Windows.Data.CollectionViewSource clienteViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("clienteViewSource")));
     clienteViewSource.View.MoveCurrentToFirst();
 }