Example #1
0
        private void AddRecentContactsFakeList()
        {
            var recent = new ContactListsModel
            {
                ImagePath    = "pack://application:,,,/ChatApp;component/Resources/RecentContact_Icon.png",
                ContactsList = new List <DisplayedContactModel>()
            };

            recent.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "test",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/OfflineProfilePicture.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Offline.ico"
            });

            recent.ListName = string.Format("Recent Contacts (0/{0})", recent.ContactsList.Count);
            ContactsLists.Add(recent);
        }
Example #2
0
        private void AddAdressBookFakeList()
        {
            var addressBook = new ContactListsModel
            {
                ContactsList = new List <DisplayedContactModel>()
            };

            addressBook.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "test",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/OfflineProfilePicture.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Offline.ico"
            });

            addressBook.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "ankii29.an",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/ProfilePicture2.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Online.ico"
            });

            addressBook.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "iasmi31_iasmi",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/ProfilePicture4.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Offline.ico"
            });
            addressBook.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "madalina.mada",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/ProfilePicture3.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Online.ico"
            });
            addressBook.ContactsList.Add(new DisplayedContactModel
            {
                Name          = "mihaela1234",
                ImagePath     = "pack://application:,,,/ChatApp;component/Resources/OfflineProfilePicture.jpg",
                OnlineIcoPath = "pack://application:,,,/ChatApp;component/Resources/Busy.ico"
            });

            addressBook.ListName = string.Format("Address Book ({0}/{1})", addressBook.ContactsList.Where(c => c.OnlineIcoPath.Contains("Online")).Count(), addressBook.ContactsList.Count);
            ContactsLists.Add(addressBook);
        }