示例#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();
 }
 public NewUserViewModel()
 {
     usersLogic  = UsersLogic.GetInstance();
     Condition   = "Visible";
     Login       = "";
     Password    = "";
     Name        = "";
     Surname     = "";
     PhoneNumber = "";
     Email       = "";
 }
 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;
        }