Пример #1
0
 private void ShowSelectedChatView()
 {
     if (lstChats.SelectedItem != null)
     {
         BitChatPanel chatPanel = lstChats.SelectedItem.Tag as BitChatPanel;
         chatPanel.BringToFront();
     }
 }
Пример #2
0
        private void ShowSelectedChatView()
        {
            if (lstChats.SelectedItem != null)
            {
                if (_currentChatPanel != null)
                {
                    _currentChatPanel.TrimMessageList();
                }

                BitChatPanel chatPanel = (lstChats.SelectedItem as ChatListItem).ChatPanel;
                chatPanel.BringToFront();
                chatPanel.SetFocusMessageEditor();

                _currentChatPanel = chatPanel;
            }
        }