Exemple #1
0
        private void dtg_espera_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                object item = dtg_espera.SelectedItem;

                if (item != null)
                {
                    string Orden = (dtg_espera.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text;
                    string bebes = (dtg_espera.SelectedCells[1].Column.GetCellContent(item) as TextBlock).Text;

                    PlatoBLL us = new PlatoBLL();
                    us.orden_id_orden = Int32.Parse(Orden);
                    us.Id_plato       = Int32.Parse(bebes);
                    us.Alter_plato_Preparacion(us);
                }
                else
                {
                }
            }
            catch
            {
            }
        }