public AddEdditMeniuViewModel() { contex = new databaseWPFEntities1(); Categorii = new List <string>(); Preparate = new List <string>(); PreparateCurente = new List <string>(); initializare(); }
public ComenziViewModel() { contex = new databaseWPFEntities1(); List<GetComenziFull_Result> Comenzi = new List<GetComenziFull_Result>(); List<ComenziF> ComenziFs = new List<ComenziF>(); List<GetAllStatus_Result> Statusuri = new List<GetAllStatus_Result>(); init(); }
public LoginViewModel() { var connection = ConfigurationManager.ConnectionStrings["dbconnection"].ToString(); con = new SqlConnection(connection); databaseWPFEntities1 = new databaseWPFEntities1(); }
public AddEdditPreparatViewModel() { Categorii = new List <string>(); AlergeniCurenti = new List <string>(); Alergeni = new List <string>(); contex = new databaseWPFEntities1(); initializare(); }
public ComenziPropriViewModel(string email) { contex = new databaseWPFEntities1(); List <GetComenziFull_Result> Comenzi = new List <GetComenziFull_Result>(); List <ComenziF> ComenziFs = new List <ComenziF>(); List <GetAllStatus_Result> Statusuri = new List <GetAllStatus_Result>(); init(email); EMail = email; }
public AddEdditMeniuViewModel(MainViewModel.MeniulPret meniulPret) { contex = new databaseWPFEntities1(); Categorii = new List <string>(); Preparate = new List <string>(); PreparateCurente = new List <string>(); Denumire = meniulPret.Meniu.denumire; MeniulPret = meniulPret; id = MeniulPret.Meniu.id_meniu; initializare2(); }
public AddEdditPreparatViewModel(MainViewModel.Parat parat) { Categorii = new List <string>(); AlergeniCurenti = new List <string>(); Alergeni = new List <string>(); Preparat = parat; contex = new databaseWPFEntities1(); Denumire = parat.Name.denumire; Pret = parat.Name.pret.ToString(); Gramaj = parat.Name.cantintate_portie.ToString(); CantitateMagazin = parat.Name.cantitate_restaurant.ToString(); Img1 = parat.poze.ElementAt(0); if (parat.poze.Count > 1) { Img2 = parat.poze.ElementAt(1); } if (parat.poze.Count > 2) { Img3 = parat.poze.ElementAt(2); } id = parat.Name.id_preparat; initializare2(); }