示例#1
0
        public MainPageViewModel()
        {
            CitiesCollection = new ObservableCollection<CityModel>(CityModel.CityModels());
            SelectedCity = CitiesCollection[0];
            GlobalVars.Global_SelectedCity_cityId = SelectedCity.CityId;

            ApartmentCommand = new RelayCommand(DoViewApartments);
        }
        public RegistrationPageViewModel()
        {
            AddRegistrationCommand = new RelayCommand(AddRegisterUser);
            AddNewUserCollection = new ObservableCollection<UserModel>();

            AddNewUserCollection.Add(new UserModel(1, "Frank Andersen", "*****@*****.**", "password", DateTime.Now.ToString()));
            AddNewUserCollection.Add(new UserModel(2, "Test Person", "*****@*****.**", "test", DateTime.Now.ToString()));
        }
示例#3
0
 public LoginViewModel()
 {
     LoginCommand = new RelayCommand(DoLoginUser);
 }