private void OpenChatItem_Click(object sender, RoutedEventArgs e) { Windows.ChatWindow chatWindow = ManageChatWindows.GetChatWindow(((MenuItem)sender).Tag.ToString()); if (chatWindow != null) { chatWindow.Focus(); } }
public void OpenChatWindow(UserInfo userInfo) { Windows.ChatWindow chatWindow = ManageChatWindows.GetChatWindow(userInfo.id); if (chatWindow != null) { chatWindow.Focus(); } }