Пример #1
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel(INavigationService navigationService, IUserService userService)
        {
            title = "Games Store";

            this.navigationService = navigationService;
            this.userService = userService;

            registerAndLoginButtonVisibility = true;
            userLoggedInButtonVisibility = false;
            loginFormVisibility = false;
            showUserSubMenu = false;

            this.LoginUserName = GameStore.WindowsApp.Common.UserInfo.Username;

            // if user to register is null , create new one
            userToRegister = userToRegister ?? (userToRegister = new User() { });
        }
Пример #2
0
 public UserEntityToSend(User user, string password)
 {
     User = user;
     Password = password;
 }