Ejemplo n.º 1
0
        public void ScrollToMessage(Tab tab, ChatMessage msg)
        {
            var win = ChatWindows.FirstOrDefault(x => x.VM.Tabs.Contains(tab));

            if (win == null)
            {
                return;
            }

            win.ScrollToMessage(tab, msg);
        }
        private void ShowChatWindow(object name)
        {
            string _name = (string)name;

            var cw = ChatWindows.FirstOrDefault(x => x.Name == _name);

            if (cw != null)
            {
                cw.IsHiddenByUser  = !cw.IsHiddenByUser;
                cw.IsWindowVisible = !cw.IsWindowVisible;
            }
        }