public Viwe_Model_Login(Visibility Visibility_reg, int level, Family family) { visibility_reg = Visibility_reg; myDB = new CashDB(); my_users = new Person(); LEVEL = level; Family = family; is_ok = false; }
public View_Model_Edit_Article(CashDB _myDB, Final temp, Person temp_person) { myDB = _myDB; List_product = myDB.Products.ToList(); my_z = temp; Date = temp.Date.ToString(); Price = temp.Money.ToString(); Type = temp.Type; Specification = temp.Specific; myProfile = temp_person; Select_item_product = List_product.Find(x => x.ID == my_z.Product.ID); }
public View_Model_Profile(CashDB tempDB, Person temp) { myDB = tempDB; my_profile_ = temp; Family_ = myDB.Families.ToList(); my_profile = myDB.People.ToList().Find(x => x.ID == my_profile_.ID); Family_str = my_profile.Family.Name; }
public View_Model_Editor(Person myP, CashDB _myDB) { myDB = _myDB; myProfile = myP; list_category = myDB.Categories.ToList(); list_product = myDB.Products.ToList(); category_list = new ObservableCollection <SelectableItemWrapper <Category> >(); foreach (var i in myDB.Categories) { SelectableItemWrapper <Category> temp = new SelectableItemWrapper <Category>(); temp.Item = i; category_list.Add(temp); } }
public View_Model_Add_Article(Person per, CashDB _myDB) { myDB = _myDB; myProfile = myDB.People.ToList().Find(x => x.ID == per.ID); List_product = myDB.Products.ToList(); }
public View_Model_Reset(CashDB temp) { myDB = temp; }
public Viwe_Model_Login() { myDB = new CashDB(); my_users = new Person(); }
public View_Model_Registration(CashDB _myDB) { myDB = _myDB; Family_ = myDB.Families.ToList(); }