private void MessageReceived(object sender, MessageReceivedHandlerArgs args) { _dotNetChatViewModel.AddChatEntry(new ChatEntryViewModel(args.Name, args.Content)); }
private void OnMessageReceived(MessageReceivedHandlerArgs args) { MessageReceivedHandler handler = MessageReceived; if (handler != null) handler(this, args); }