コード例 #1
0
 public MarketPageUserViewModel()
 {
     usersLogic     = UsersLogic.GetInstance();
     historiesLogic = HistoriesLogic.GetInstance();
     Condition      = "Visible";
     FullName       = usersLogic.GetFullName();
     Checks         = new ObservableCollection <Check>(historiesLogic.GetChecks(UsersLogic.GetId()));
     SeeCheck       = new RelayCommand <int>(ThisCheck);
     ProductsLogic.GetInstance();
 }
コード例 #2
0
 public NewUserViewModel()
 {
     usersLogic  = UsersLogic.GetInstance();
     Condition   = "Visible";
     Login       = "";
     Password    = "";
     Name        = "";
     Surname     = "";
     PhoneNumber = "";
     Email       = "";
 }
コード例 #3
0
 public MainViewModel()
 {
     staffsLogic = StaffsLogic.GetInstance();
     usersLogic  = UsersLogic.GetInstance();
     Persons     = new List <string>
     {
         "Директор",
         "Персонал интернет-магазина",
         "Администратор интернет-магазина",
         "Пользователь"
     };
     Login    = "";
     Password = "";
 }
コード例 #4
0
        public EditUserViewModel()
        {
            usersLogic  = UsersLogic.GetInstance();
            Condition   = "Visible";
            Login       = usersLogic.GetLogin();
            Password    = usersLogic.GetPassword();
            Name        = usersLogic.GetName();
            Surname     = usersLogic.GetSurname();
            PhoneNumber = usersLogic.GetNumberPhone();
            Email       = usersLogic.GetEmail();

            startLogin       = Login;
            startPassword    = Password;
            startName        = Name;
            startSurname     = Surname;
            startPhoneNumber = PhoneNumber;
            startEmail       = Email;
        }