private void StartChatButton_Click(object sender, RoutedEventArgs e) { if (_selectedFriend != null) { ChatMenu.StartChatWithFriend(_selectedFriend.HashId, _selectedFriend.Username); } }
public ChatMenu() { InitializeComponent(); _instance = this; _user = User.Instance; // Init Websocket _chatAccess = WebsocketChatAccess.Instance; // Add event for chat update notification _chatAccess.AddEvent((sender, args) => { ReceiveMessage(args.Data); }); // Set current chat to general //AddNewTab(DefaultCanal); }