コード例 #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;
 }
コード例 #2
0
 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);
 }
コード例 #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;
        }
コード例 #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);
            }
        }
コード例 #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();
 }
コード例 #6
0
 public View_Model_Reset(CashDB temp)
 {
     myDB = temp;
 }
コード例 #7
0
 public Viwe_Model_Login()
 {
     myDB     = new CashDB();
     my_users = new Person();
 }
コード例 #8
0
        public View_Model_Registration(CashDB _myDB)
        {
            myDB = _myDB;

            Family_ = myDB.Families.ToList();
        }