Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 6
0
 public View_Model_Reset(CashDB temp)
 {
     myDB = temp;
 }
Exemplo n.º 7
0
 public Viwe_Model_Login()
 {
     myDB     = new CashDB();
     my_users = new Person();
 }
        public View_Model_Registration(CashDB _myDB)
        {
            myDB = _myDB;

            Family_ = myDB.Families.ToList();
        }