Exemple #1
0
        public ChatWindow(User user, IUserPresentationService userPresentationService)
        {
            InitializeComponent();
            _currentUser                = user;
            _userPresentationService    = userPresentationService;
            _messagePresentationService = new MessagePresentationService();
            HelloHeader.Text            = $@"Hi, {user.Login}";
            var users = _userPresentationService.GetUsersLogins().Where(login => login != user.Login);

            Recievers.Items.Clear();
            users.ToList().ForEach(item => Recievers.Items.Add(item));
        }
 public RegisterWindow()
 {
     _userPresentationService = new UserPresentationService();
     InitializeComponent();
 }
Exemple #3
0
 public LoginWindow(Window mainWindow)
 {
     InitializeComponent();
     _mainWindow = mainWindow;
     _userPresentationService = new UserPresentationService();
 }