Пример #1
0
        private void Dtg_plato_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                var item = dtg_plato.SelectedItem as DataRowView;

                if (item != null)
                {
                    string   Orden = item.Row[0].ToString();
                    string   bebes = item.Row[2].ToString();
                    PlatoBLL bb    = new PlatoBLL();

                    int idb = bb.Platoidbynb(bebes);
                    int ido = Int32.Parse(Orden);
                    bb.Alter_Plato_Despachado(ido, idb);
                }
                else
                {
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("" + ex);
            }
        }