Ejemplo n.º 1
0
 private void ChatList_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         Views.ChatListEntry entry = (Views.ChatListEntry)ChatList.SelectedItem;
         chatListViewModel.OpenChat(entry.ChatId);
     }
 }
Ejemplo n.º 2
0
        internal void UpdateChatList()
        {
            if (_chatList != null)
            {
                _chatList.Items.Clear();

                var chats = AccountManager.GetChatList();
                for (int i = 0; i < chats.Count; i++)
                {
                    var chat = new Views.ChatListEntry(chats[i].Id.Value, chats[i].ChatTitle, "");
                    chat.MouseDoubleClick += Chat_MouseDoubleClick;
                    _chatList.Items.Add(chat);
                }
            }
        }
Ejemplo n.º 3
0
 private void Chat_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     Views.ChatListEntry entry = (Views.ChatListEntry)sender;
     OpenChat(entry.ChatId);
 }
Ejemplo n.º 4
0
        internal void UpdateChatList()
        {
            if (_chatList != null)
            {
                _chatList.Items.Clear();

                var chats = AccountManager.GetChatList();
                for (int i = 0; i < chats.Count; i++)
                {
                    var chat = new Views.ChatListEntry(chats[i].Id.Value, chats[i].ChatTitle, "");
                    chat.MouseDoubleClick += Chat_MouseDoubleClick;
                    _chatList.Items.Add(chat);
                }
            }
        }