/// <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() { }); }
public UserEntityToSend(User user, string password) { User = user; Password = password; }