public void ChargementEvenementDujour(DateTime Datetime) { var date = Datetime.Date; // System.Windows.MessageBox.Show(date.Date.ToString()); ListEvent = new CoucheGestion.G_Vue_Event(chConnexion).Lire_Event_Dujour(date); MenuDuJour = new CoucheGestion.G_Vue_Menu(chConnexion).Lire_Menu_DuJour(date); }
private ObservableCollection <C_Vue_Menu> ChargerMenu(string chConn) { ObservableCollection <C_Vue_Menu> rep = new ObservableCollection <C_Vue_Menu>(); List <C_Vue_Menu> lTmp = new CoucheGestion.G_Vue_Menu(chConn).Lire_All_Menu(); foreach (C_Vue_Menu Tmp in lTmp) { C_Vue_Menu menutmp = new C_Vue_Menu(Tmp.ID_Menu, Tmp.E_Descr, Tmp.P_Descr, Tmp.D_Descr, Tmp.C_Descr); rep.Add(menutmp); } return(rep); }
public ObservableCollection <C_Vue_Menu> ChargerMenu() { ObservableCollection <C_Vue_Menu> rep = new ObservableCollection <C_Vue_Menu>(); List <C_Vue_Menu> lTmp = new CoucheGestion.G_Vue_Menu(chConnexion).Lire_All_Menu(); foreach (C_Vue_Menu Tmp in lTmp) { C_Vue_Menu menu = new C_Vue_Menu(Tmp.ID_Menu, Tmp.E_Descr, Tmp.P_Descr, Tmp.D_Descr, Tmp.C_Descr); rep.Add(menu); C_T_Event ev; } return(rep); }