コード例 #1
0
        public void fillCbPlatos()
        {
            PlatoBLL  plbll = new PlatoBLL();
            DataTable dt    = new DataTable();

            dt = plbll.GetPlatosHabilitados();

            cbPlatos.ItemsSource       = dt.DefaultView;
            cbPlatos.DisplayMemberPath = "NOMBRE_PLATO";
            cbPlatos.SelectedValuePath = "ID_PLATO";
            cbPlatos.SelectedIndex     = 0;
        }