Пример #1
0
        private void Tablero_Loaded(object sender, RoutedEventArgs e)
        {
            lblusr.Content = "Nombre de usuario: " + username;

            oDispatcherTimer.Interval = new TimeSpan(0, 0, 5);
            oDispatcherTimer.Tick    += (a, b) =>
            {
                PlatoBLL espBLL          = new PlatoBLL();
                System.Data.DataTable dt = espBLL.Get_Orden_espera_plato();
                dtg_espera.ItemsSource = dt.DefaultView;

                PlatoBLL prepBLL          = new PlatoBLL();
                System.Data.DataTable dta = prepBLL.Get_Orden_preparacion_plato();
                dtg_prep.ItemsSource = dta.DefaultView;

                PlatoBLL lisBLL           = new PlatoBLL();
                System.Data.DataTable dtg = lisBLL.Get_Orden_listo_plato();
                dtg_listo.ItemsSource = dtg.DefaultView;
            };
        }