private void LoadMessage(object sender, EventArgs eventArgs)
        {
            var contactName    = _connection.Messages.Key;
            var contactMessage = _connection.Messages.Value;

            if (MyProfileEdditor.FindIndex(_profile.MyContacts, contactName) == -1)
            {
                AddNewContact(new Contact {
                    Name = contactName, Online = true
                });
            }
            UpdateStatus(sender, null);

            if (contactMessage != null && !_mainWindow.UnreadMessages.Contains(contactName))
            {
                _mainWindow.UnreadMessages.Add(contactName);
            }

            var keysList = _mainWindow.ContaktsMessageHistory.Keys;

            if (keysList.Contains(_connection.Messages.Key))
            {
                _mainWindow.ContaktsMessageHistory[contactName] += contactMessage;
            }
            else
            {
                _mainWindow.ContaktsMessageHistory.Add(contactName, contactMessage);
            }

            _mainWindow.UpdateMessageScreen();
        }
        private void UpdateStatus(object sender, PropertyChangedEventArgs e)
        {
            _profile = MyProfileEdditor.ChangeStatus(_profile, _connection.StatusUpdate.Key,
                                                     _connection.StatusUpdate.Value);


            ContaktsListPresenter.GetContaktsViewModel(_profile.MyContacts, _mainWindow);


            _mainWindow.ChangeStatusContact(_connection.StatusUpdate.Key);
        }
        private void DeleteContact(object sender, EventArgs eventArgs)
        {
            _profile = MyProfileEdditor.DeleteContact(_profile, _mainWindow.ActiveContact);

            _mainWindow.ContaktsMessageHistory.Remove(_mainWindow.ActiveContact);
        }