Example #1
0
        public void FriendListChat()
        {
            Service s = new Service();

            try
            {
                FriendList = s.GetAllUser(LoggedGuest.ID);
                if (friendList.Count == 1)
                {
                    mainWindow.ExpanderFriends.Header = $"Ćaskanje ({FriendList.Count()} prijatelj)";
                }
                else
                {
                    mainWindow.ExpanderFriends.Header = $"Ćaskanje ({FriendList.Count()} prijatelja)";
                }
            }
            catch (Exception ex)
            {
                Xceed.Wpf.Toolkit.MessageBox.Show(ex.ToString());
            }
        }