private void OpenChatWindow() { if (ChosenContact != null) { Window chatWindow = ChatWindowFactory.GetChatWindow(chosenContact.UserName, string.Empty); chatWindow.Show(); } }
private void ChatServiceProxy_OnMessageSent(object sender, OnMessageSentEventArgs e) { Window chatWindow = ChatWindowFactory.GetChatWindow(e.UserName, e.Message); chatWindow.Show(); }