//ctor public ContactsViewModel(IFrameNavigationService navigationService) { _navigationService = navigationService; _userManager = new ClientUserManager(); _interactionManager = new ClientInteractionManager(); ContactList = ConvertUserForUserView.ConvertUser(_userManager.GetContactList()); _userManager.RegisterNotifyEvent(ContactUptaded); _interactionManager.RegisterInvitationResponseEvent(HandleUserResponse); _interactionManager.RegisterChatRequestEvent(AgreeChatRequest); LogoutCommand = new RelayCommand(Logout); OpenChatCommand = new RelayCommand(OpenChat); OpenGameCommand = new RelayCommand(OpenGame); UserTitle = $"Welcome {ClientUserManager.CurrentUser}"; }