public ErrorEmulatorVm(ErrorEmulator errorEmulator, Action onErrorTypeChanged)
        {
            _errorEmulator      = errorEmulator;
            _onErrorTypeChanged = onErrorTypeChanged;

            ErrorTypes = ErrorEmulator.ErrorLabels;
        }
        public App()
        {
            InitializeComponent();

            Initializer.Initialize(true, true);
            Sharpnado.Tabs.Initializer.Initialize(true, true);
            Sharpnado.Shades.Initializer.Initialize(loggerEnable: false);

            var navigationService = new FormsNavigationService(
                new Lazy <NavigationPage>(() => (NavigationPage)Current.MainPage),
                new ViewLocator());

            DependencyContainer.Instance.Options.EnableAutoVerification = false;

            var errorEmulator = new ErrorEmulator();

            DependencyContainer.Instance.Register <ISillyDudeService>(() => new SillyDudeService(errorEmulator));
            DependencyContainer.Instance.Register <INavigationService>(() => navigationService);

            DependencyContainer.Instance.Register <GridPageViewModel>();
            DependencyContainer.Instance.Register <GridPage>();

            DependencyContainer.Instance.Register <HeaderFooterGroupingPageViewModel>();
            DependencyContainer.Instance.Register <HeaderFooterGroupingPage>();

            MainPage = new NavigationPage(new ChoosePage(navigationService)
            {
                BindingContext = new ChoosePageViewModel()
            });
        }
Exemple #3
0
 public SillyBottomTabsPageViewModel(
     INavigationService navigationService,
     ISillyDudeService sillyDudeService,
     ErrorEmulator errorEmulator)
     : base(navigationService)
 {
     HomePageViewModel = new HomePageViewModel(navigationService, sillyDudeService);
     ListPageViewModel = new ListPageViewModel(navigationService, sillyDudeService, errorEmulator);
     GridPageViewModel = new GridPageViewModel(navigationService, sillyDudeService);
 }
Exemple #4
0
        public RetroGamesIsBusyViewModel(
            INavigationService navigationService,
            IRetroGamingService retroGamingService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _retroGamingService = retroGamingService;

            ErrorEmulatorViewModel = new ErrorEmulatorViewModel(errorEmulator, () => Load());

            RefreshCommand = new Command(() => Load(true));
            ReloadCommand  = new Command(() => Load());
        }
        public TwoPanePageViewModel(
            INavigationService navigationService,
            ISillyDudeService sillyDudeService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            SillyBottomTabsPageViewModel = new SillyBottomTabsPageViewModel(
                navigationService,
                sillyDudeService,
                errorEmulator);

            SillyDudeViewModel = new SillyDudeVm(navigationService, sillyDudeService);
        }
        public SillyPeopleVm(
            INavigationService navigationService,
            ISillyDudeService sillyDudeService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _sillyDudeService = sillyDudeService;
            InitCommands();

            ErrorEmulator = new ErrorEmulatorVm(
                errorEmulator,
                () => SillyPeopleLoaderNotifier.Load(LoadSillyPeopleAsync));
            SillyPeopleLoaderNotifier = new TaskLoaderNotifier <ObservableCollection <SillyDudeVmo> >();
        }
Exemple #7
0
        public ErrorEmulatorVm(ErrorEmulator errorEmulator, Action onErrorTypeChanged)
        {
            _errorEmulator      = errorEmulator;
            _onErrorTypeChanged = onErrorTypeChanged;

            ErrorTypes = new List <string>
            {
                SillyResources.ErrorType_None,
                SillyResources.ErrorType_Unknown,
                SillyResources.ErrorType_Network,
                SillyResources.ErrorType_Server,
                SillyResources.ErrorType_NoData,
            };
        }
        public ErrorEmulatorViewModel(ErrorEmulator errorEmulator, Action onErrorTypeChanged)
        {
            errorEmulator.ErrorType = ErrorType.None;

            _errorEmulator      = errorEmulator;
            _onErrorTypeChanged = onErrorTypeChanged;

            ErrorTypes = new List <string>
            {
                SampleResources.ErrorType_None,
                SampleResources.ErrorType_Unknown,
                SampleResources.ErrorType_Network,
                SampleResources.ErrorType_Server,
                SampleResources.ErrorType_NoData,
                SampleResources.ErrorType_ErrorOnRefresh,
            };
        }
        public SillyInfinitePeopleVm(
            INavigationService navigationService,
            ISillyDudeService sillyDudeService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _sillyDudeService = sillyDudeService;
            InitCommands();

            ErrorEmulator = new ErrorEmulatorVm(errorEmulator, Load);

            SillyPeople          = new ObservableRangeCollection <SillyDudeVmo>();
            SillyPeoplePaginator = new Paginator <SillyDude>(
                LoadSillyPeoplePageAsync,
                pageSize: PageSize,
                loadingThreshold: 0.1f);
            SillyPeopleLoaderNotifier = new TaskLoaderNotifier <IReadOnlyCollection <SillyDude> >();
        }
Exemple #10
0
        public ListPageViewModel(
            INavigationService navigationService,
            ISillyDudeService sillyDudeService,
            ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _sillyDudeService = sillyDudeService;
            InitCommands();

            ErrorEmulator = new ErrorEmulatorVm(errorEmulator, Load);

            SillyPeople          = new ObservableRangeCollection <SillyDudeVmo>();
            SillyPeoplePaginator = new Paginator <SillyDude>(
                LoadSillyPeoplePageAsync,
                pageSize: PageSize,
                loadingThreshold: 0.1f);
            SillyPeopleLoader = new ViewModelLoader <IReadOnlyCollection <SillyDude> >(
                ApplicationExceptions.ToString,
                SillyResources.Empty_Screen);
        }
 public RetroGamingService(ErrorEmulator errorEmulator)
 {
     _errorEmulator = errorEmulator;
     _igdbClient    = RefitClient.Create("b4f8877672fb840873c1bf1b5fe611fb");
 }
        public RetroGamesViewModel(INavigationService navigationService, IRetroGamingService retroGamingService, ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _retroGamingService = retroGamingService;

            ErrorEmulatorViewModel = new ErrorEmulatorViewModel(errorEmulator, () => Loader.Load(InitializeAsync));

            // TaskStartMode = Auto
            // Loader = new TaskLoaderNotifier<List<Game>>(InitializeAsync);

            // TaskStartMode = Manual (Default mode)
            Loader = new TaskLoaderNotifier <List <Game> >();
        }
        public SillyDudeService(ErrorEmulator errorEmulator)
        {
            _errorEmulator = errorEmulator;
            _repository    = new Dictionary <int, SillyDude>
            {
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Will Ferrell",
                        "Actor",
                        "Hey.\nThey laughed at Louis Armstrong when he said he was gonna go to the moon.\nNow he’s up there, laughing at them.",
#if LOCAL_DATA
                        "will_ferrell.jpg",
#else
                        "http://www.2oceansvibe.com/wp-content/uploads/2017/10/willlferell.jpg",
#endif
                        4,
                        "https://youtu.be/sPFRZP4qY7I?t=26")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Knights of Ni",
                        "Knights",
                        "Keepers of the sacred words 'Ni', 'Peng', and 'Neee-Wom'",
#if LOCAL_DATA
                        "knights_of_ni.jpg",
#else
                        "http://images.uncyc.org/commons/d/dd/The_leader_of_the_Knights_Who_Say_Ni.jpg",
#endif
                        5,
                        "https://www.youtube.com/watch?v=zIV4poUZAQo")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Jean-Claude",
                        "Actor",
                        "J’adore les cacahuètes.\nTu bois une bière et tu en as marre du goût. Alors tu manges des cacahuètes.\nLes cacahuètes, c’est doux et salé, fort et tendre, comme une femme. Manger des cacahuètes. It’s a really strong feeling.\nEt après tu as de nouveau envie de boire une bière.\nLes cacahuètes, c’est le mouvement perpétuel à la portée de l’homme.",
#if LOCAL_DATA
                        "jean_claude_van_damme.jpg",
#else
                        "http://media.popculture.com/2017/06/jean-claude-van-damme-predator-20003834-640x480.jpg",
#endif
                        5)
                },
//                    {
//                        ++_peopleCounter,
//                        new SillyDude(
//                            _peopleCounter,
//                            "Louis C.K.",
//                            "Comedian",
//                            "There are people that really live by doing the right thing, but I don't know what that is, I'm really curious about that.\nI'm really curious about what people think they're doing when they're doing something evil, casually.\nI think it's really interesting, that we benefit from suffering so much, and we excuse ourselves from it.",
//#if LOCAL_DATA
//                            "louis_ck.jpg",
//#else
//                            "http://pixel.nymag.com/imgs/daily/vulture/2016/04/21/21-louis-ck.w529.h529.jpg",
//#endif
//                            2)
//                    },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Triumph",
                        "Insult Comic Dog",
                        "Occupy Wall Street, talking to a trader with a Fox News mustache on.\nThese protesters with their whining and crying right?\nDon't they realize that their public education are being funded from the taxes you evade each year?\nI don't want to keep you, you're a good man! You better hurry back from lunch so you can collect your hurry back from lunch bonus.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://jnxz07-a.akamaihd.net/wp-content/uploads/2015/03/triumph-e1425247855563.jpeg",
#endif
                        2,
                        "https://youtu.be/O-253uBJap8?t=315")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Ricky Gervais",
                        "Comedian",
                        "Science seeks the truth. And it does not discriminate. For better or worse it finds things out.\nScience is humble.\nIt knows what it knows and it knows what it doesn’t know. It bases its conclusions and beliefs on hard evidence -­- evidence that is constantly updated and upgraded.\nIt doesn’t get offended when new facts come along. It embraces the body of knowledge.\nIt doesn’t hold on to medieval practices because they are tradition.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://wfmj.images.worldnow.com/images/6382251_G.jpg?auto=webp&disable=upscale&width=800",
#endif
                        3)
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Steve Carell",
                        "Comedian",
                        "Vincent van Gogh. Everyone told him: \"You only have one ear. You cannot be a great artist.\"\nAnd you know what he said?\n\"I can\'t hear you.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://www4.pictures.zimbio.com/mp/8q1mIIQGkXHm.jpg",
#endif
                        3,
                        "https://youtu.be/N9Z4vqysxMQ?t=92")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Father Ted",
                        "Priest",
                        "My Lovely Horse,\r\nRunning through the field,\r\nWhere are you going,\r\nWith your fetlocks blowing,\r\nIn the wind.\r\n\r\n“I want to shower you with sugar lumps,\r\nAnd ride you over fences,\r\nI want to polish your hooves every single day,\r\nAnd bring you to the horse dentist.\r\n\r\n“My lovely horse,\r\nYou’re a pony no more,\r\nRunning around,\r\nWith a man on your back,\r\nLike a train in the night,\r\nLike a train in the night!”",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://cdn.playbuzz.com/cdn/b0cd9743-c236-4c0e-b468-00f83724f117/e2b08eac-053b-4b06-8538-405852dc865b.jpg",
#endif
                        4,
                        "https://www.youtube.com/watch?v=jzYzVMcgWhg")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Moss",
                        "IT Guy",
                        "Did you see that ludicrous display last night?\nThe thing about Arsenal is, they always try to walk it in!",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://i123.photobucket.com/albums/o320/lucy_edward/moss_pic2.jpg",
#endif
                        3,
                        "https://youtu.be/NKHyqjHqQLU?t=32")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Les Nuls",
                        "Crétins Fabuleux",
                        "Agad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors.\n",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://4.bp.blogspot.com/_fMA4vs4kLc0/S0yka8se4NI/AAAAAAAAAtc/chbrVG878_0/s1600/carette+chabat.jpg",
#endif
                        4,
                        "https://www.youtube.com/watch?v=lNEpFJYduto")
                },
            };
        }
 public RetroGamingService(ErrorEmulator errorEmulator)
 {
     _igdbClient    = RefitClient.Create();
     _errorEmulator = errorEmulator;
 }
        public SillyDudeService(ErrorEmulator errorEmulator)
        {
            _errorEmulator = errorEmulator;
            _repository    = new Dictionary <int, SillyDude>
            {
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Will Ferrell",
                        "Actor",
                        "Hey.\nThey laughed at Louis Armstrong when he said he was gonna go to the moon.\nNow he’s up there, laughing at them.",
#if LOCAL_DATA
                        "will_ferrell.jpg",
#else
                        "https://news.usc.edu/files/2017/03/Will-Ferrell-Step-Brothers_Horizontal_web-824x549.jpg",
#endif
                        4,
                        Filmos.Ferrell,
                        "https://sayingimages.com/wp-content/uploads/dear-monday-will-ferrell-memes.jpg",
                        "https://youtu.be/sPFRZP4qY7I?t=26")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Knights of Ni",
                        "Knights",
                        "Keepers of the sacred words 'Ni', 'Peng', and 'Neee-Wom'",
#if LOCAL_DATA
                        "knights_of_ni.jpg",
#else
                        "https://upload.wikimedia.org/wikipedia/en/thumb/e/eb/Knightni.jpg/400px-Knightni.jpg",
#endif
                        5,
                        "ni!",
                        "https://i.imgflip.com/1fyfpo.jpg",
                        "https://www.youtube.com/watch?v=zIV4poUZAQo")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Jean-Claude",
                        "Actor",
                        "J’adore les cacahuètes.\nTu bois une bière et tu en as marre du goût. Alors tu manges des cacahuètes.\nLes cacahuètes, c’est doux et salé, fort et tendre, comme une femme. Manger des cacahuètes. It’s a really strong feeling.\nEt après tu as de nouveau envie de boire une bière.\nLes cacahuètes, c’est le mouvement perpétuel à la portée de l’homme.",
#if LOCAL_DATA
                        "jean_claude_van_damme.jpg",
#else
                        "https://m.media-amazon.com/images/M/MV5BNjU1NzVkOWMtYmJjYy00M2UwLTkxYmEtNmU0YjI5M2ZhYTU3XkEyXkFqcGdeQXVyMjUyNDk2ODc@._V1_.jpg",
#endif
                        5,
                        Filmos.VanDamme,
                        "https://www.planet.fr/files/styles/pano_xxl/public/images/diaporama/5/8/0/1615085/vignette-focus_3.jpg?itok=zMC9zW1c")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Triumph",
                        "Insult Comic Dog",
                        "Occupy Wall Street, talking to a trader with a Fox News mustache on.\nThese protesters with their whining and crying right?\nDon't they realize that their public education are being funded from the taxes you evade each year?\nI don't want to keep you, you're a good man! You better hurry back from lunch so you can collect your hurry back from lunch bonus.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://jnxz07-a.akamaihd.net/wp-content/uploads/2015/03/triumph-e1425247855563.jpeg",
#endif
                        2,
                        Filmos.Triumph,
                        "https://i.imgflip.com/xi0tk.jpg",
                        "https://youtu.be/O-253uBJap8?t=315")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Ricky Gervais",
                        "Comedian",
                        "Science seeks the truth. And it does not discriminate. For better or worse it finds things out.\nScience is humble.\nIt knows what it knows and it knows what it doesn’t know. It bases its conclusions and beliefs on hard evidence -­- evidence that is constantly updated and upgraded.\nIt doesn’t get offended when new facts come along. It embraces the body of knowledge.\nIt doesn’t hold on to medieval practices because they are tradition.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://resize-parismatch.lanmedia.fr/rcrop/250,250/img/var/news/storage/images/paris-match/people-a-z/ricky-gervais/6126908-7-fre-FR/Ricky-Gervais.jpg",
#endif
                        3,
                        Filmos.Gervais,
                        "https://pics.me.me/what-can-be-more-arrogant-than-believing-that-the-same-13060011.png")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Steve Carell",
                        "Comedian",
                        "Vincent van Gogh. Everyone told him: \"You only have one ear. You cannot be a great artist.\"\nAnd you know what he said?\n\"I can\'t hear you.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://pixel.nymag.com/imgs/daily/vulture/2018/12/22/23-brick.w330.h330.jpg",
#endif
                        3,
                        Filmos.Carell,
                        "https://sayingimages.com/wp-content/uploads/fool-me-once-michael-scott-memes-1.jpg",
                        "https://youtu.be/N9Z4vqysxMQ?t=92")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Father Ted",
                        "Priest",
                        "My Lovely Horse,\r\nRunning through the field,\r\nWhere are you going,\r\nWith your fetlocks blowing,\r\nIn the wind.\r\n\r\n“I want to shower you with sugar lumps,\r\nAnd ride you over fences,\r\nI want to polish your hooves every single day,\r\nAnd bring you to the horse dentist.\r\n\r\n“My lovely horse,\r\nYou’re a pony no more,\r\nRunning around,\r\nWith a man on your back,\r\nLike a train in the night,\r\nLike a train in the night!”",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://vignette.wikia.nocookie.net/fatherted/images/b/b2/Ted.jpg",
#endif
                        4,
                        Filmos.Ted,
                        "https://cdn.psychologytoday.com/sites/default/files/styles/image-article_inline_full/public/blogs/129003/2014/08/158581-164751.jpg?itok=f7HhI_lo",
                        "https://www.youtube.com/watch?v=jzYzVMcgWhg")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Moss",
                        "IT Guy",
                        "Did you see that ludicrous display last night?\nThe thing about Arsenal is, they always try to walk it in!",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://a1cf74336522e87f135f-2f21ace9a6cf0052456644b80fa06d4f.ssl.cf2.rackcdn.com/images/characters_opt/p-the-it-crowd-richard-ayoade.jpg",
#endif
                        3,
                        Filmos.Moss,
                        "https://images1.memedroid.com/images/UPLOADED8/501f9cd68575e.jpeg",
                        "https://youtu.be/NKHyqjHqQLU?t=32")
                },
                {
                    ++_peopleCounter, new SillyDude(
                        _peopleCounter,
                        "Les Nuls",
                        "Crétins Fabuleux",
                        "Agad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors.\n",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://www.jokeme.fr/images/les-nuls-JTN.jpg",
#endif
                        4,
                        Filmos.LesNuls,
                        "https://img.static-rmg.be/a/view/q75/w720/h480/2223699/un-clin-doeil-a-la-cite-de-la-peur-sur-le-site-de-2-24535-1433777643-0-dblbig-jpg.jpg",
                        "https://www.youtube.com/watch?v=lNEpFJYduto")
                },
            };

            for (int id = 1; id < 200; id++)
            {
                var dudeToClone = _repository[id];
                _repository.Add(++_peopleCounter, dudeToClone.Clone(_peopleCounter));
            }
        }
        public SillyDudeService(ErrorEmulator errorEmulator)
        {
            _errorEmulator = errorEmulator;
            _repository    = new Dictionary <int, SillyDude>
            {
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Will Ferrell",
                        "Actor",
                        "Hey.\nThey laughed at Louis Armstrong when he said he was gonna go to the moon.\nNow he’s up there, laughing at them.",
#if LOCAL_DATA
                        "will_ferrell.jpg",
#else
                        "http://www.2oceansvibe.com/wp-content/uploads/2017/10/willlferell.jpg",
#endif
                        4,
                        Filmos.Ferrell,
                        "https://sayingimages.com/wp-content/uploads/dear-monday-will-ferrell-memes.jpg",
                        "https://youtu.be/sPFRZP4qY7I?t=26")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Knights of Ni",
                        "Knights",
                        "Keepers of the sacred words 'Ni', 'Peng', and 'Neee-Wom'",
#if LOCAL_DATA
                        "knights_of_ni.jpg",
#else
                        "http://images.uncyc.org/commons/d/dd/The_leader_of_the_Knights_Who_Say_Ni.jpg",
#endif
                        5,
                        "ni!",
                        "http://www.quickmeme.com/img/e8/e835352f2b7cd21efc12eba56c0d5a3e00c411965b029126cb5eb360fcfa6eb5.jpg",
                        "https://www.youtube.com/watch?v=zIV4poUZAQo")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Jean-Claude",
                        "Actor",
                        "J’adore les cacahuètes.\nTu bois une bière et tu en as marre du goût. Alors tu manges des cacahuètes.\nLes cacahuètes, c’est doux et salé, fort et tendre, comme une femme. Manger des cacahuètes. It’s a really strong feeling.\nEt après tu as de nouveau envie de boire une bière.\nLes cacahuètes, c’est le mouvement perpétuel à la portée de l’homme.",
#if LOCAL_DATA
                        "jean_claude_van_damme.jpg",
#else
                        "http://media.popculture.com/2017/06/jean-claude-van-damme-predator-20003834-640x480.jpg",
#endif
                        5,
                        Filmos.VanDamme,
                        "http://www.quickmeme.com/img/48/485340aeb0d8a432c3f3eb5b33ad9fb2c92b6c2ef17ccc53719474302e51b9de.jpg"
                        )
                },
//                    {
//                        ++_peopleCounter,
//                        new SillyDude(
//                            _peopleCounter,
//                            "Louis C.K.",
//                            "Comedian",
//                            "There are people that really live by doing the right thing, but I don't know what that is, I'm really curious about that.\nI'm really curious about what people think they're doing when they're doing something evil, casually.\nI think it's really interesting, that we benefit from suffering so much, and we excuse ourselves from it.",
//#if LOCAL_DATA
//                            "louis_ck.jpg",
//#else
//                            "http://pixel.nymag.com/imgs/daily/vulture/2016/04/21/21-louis-ck.w529.h529.jpg",
//#endif
//                            2)
//                    },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Triumph",
                        "Insult Comic Dog",
                        "Occupy Wall Street, talking to a trader with a Fox News mustache on.\nThese protesters with their whining and crying right?\nDon't they realize that their public education are being funded from the taxes you evade each year?\nI don't want to keep you, you're a good man! You better hurry back from lunch so you can collect your hurry back from lunch bonus.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "https://jnxz07-a.akamaihd.net/wp-content/uploads/2015/03/triumph-e1425247855563.jpeg",
#endif
                        2,
                        Filmos.Triumph,
                        "http://2.bp.blogspot.com/-sPduDIOi2-U/UR3Bpkjn0jI/AAAAAAAAGlo/SnSOI-tYyqo/s1600/PoopBoatTriumph.jpg",
                        "https://youtu.be/O-253uBJap8?t=315")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Ricky Gervais",
                        "Comedian",
                        "Science seeks the truth. And it does not discriminate. For better or worse it finds things out.\nScience is humble.\nIt knows what it knows and it knows what it doesn’t know. It bases its conclusions and beliefs on hard evidence -­- evidence that is constantly updated and upgraded.\nIt doesn’t get offended when new facts come along. It embraces the body of knowledge.\nIt doesn’t hold on to medieval practices because they are tradition.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://wfmj.images.worldnow.com/images/6382251_G.jpg?auto=webp&disable=upscale&width=800",
#endif
                        3,
                        Filmos.Gervais,
                        "https://cdn.newsapi.com.au/image/v1/e737788003cdba5e51cea05a15d8094a")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Steve Carell",
                        "Comedian",
                        "Vincent van Gogh. Everyone told him: \"You only have one ear. You cannot be a great artist.\"\nAnd you know what he said?\n\"I can\'t hear you.",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://www4.pictures.zimbio.com/mp/8q1mIIQGkXHm.jpg",
#endif
                        3,
                        Filmos.Carell,
                        "https://sayingimages.com/wp-content/uploads/fool-me-once-michael-scott-memes-1.jpg",
                        "https://youtu.be/N9Z4vqysxMQ?t=92")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Father Ted",
                        "Priest",
                        "My Lovely Horse,\r\nRunning through the field,\r\nWhere are you going,\r\nWith your fetlocks blowing,\r\nIn the wind.\r\n\r\n“I want to shower you with sugar lumps,\r\nAnd ride you over fences,\r\nI want to polish your hooves every single day,\r\nAnd bring you to the horse dentist.\r\n\r\n“My lovely horse,\r\nYou’re a pony no more,\r\nRunning around,\r\nWith a man on your back,\r\nLike a train in the night,\r\nLike a train in the night!”",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://cdn.playbuzz.com/cdn/b0cd9743-c236-4c0e-b468-00f83724f117/e2b08eac-053b-4b06-8538-405852dc865b.jpg",
#endif
                        4,
                        Filmos.Ted,
                        "https://cdn.psychologytoday.com/sites/default/files/styles/image-article_inline_full/public/blogs/129003/2014/08/158581-164751.jpg?itok=f7HhI_lo",
                        "https://www.youtube.com/watch?v=jzYzVMcgWhg")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Moss",
                        "IT Guy",
                        "Did you see that ludicrous display last night?\nThe thing about Arsenal is, they always try to walk it in!",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://i123.photobucket.com/albums/o320/lucy_edward/moss_pic2.jpg",
#endif
                        3,
                        Filmos.Moss,
                        "https://images1.memedroid.com/images/UPLOADED8/501f9cd68575e.jpeg",
                        "https://youtu.be/NKHyqjHqQLU?t=32")
                },
                {
                    ++_peopleCounter,
                    new SillyDude(
                        _peopleCounter,
                        "Les Nuls",
                        "Crétins Fabuleux",
                        "Agad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors!\nAgad la té'évision é pis dors.\nAgad la té'évision é pis dors.\n",
#if LOCAL_DATA
                        "louis_ck.jpg",
#else
                        "http://4.bp.blogspot.com/_fMA4vs4kLc0/S0yka8se4NI/AAAAAAAAAtc/chbrVG878_0/s1600/carette+chabat.jpg",
#endif
                        4,
                        Filmos.LesNuls,
                        "https://img.static-rmg.be/a/view/q75/w720/h480/2223699/un-clin-doeil-a-la-cite-de-la-peur-sur-le-site-de-2-24535-1433777643-0-dblbig-jpg.jpg",
                        "https://www.youtube.com/watch?v=lNEpFJYduto")
                },
            };

            for (int id = 1; id < 200; id++)
            {
                var dudeToClone = _repository[id];
                _repository.Add(++_peopleCounter, dudeToClone.Clone(_peopleCounter));
            }
        }
        public SillyPeopleVm(INavigationService navigationService, ISillyDudeService sillyDudeService, ErrorEmulator errorEmulator)
            : base(navigationService)
        {
            _sillyDudeService = sillyDudeService;
            InitCommands();

            ErrorEmulator     = new ErrorEmulatorVm(errorEmulator, () => SillyPeopleLoader.Load(LoadSillyPeopleAsync));
            SillyPeopleLoader = new ViewModelLoader <ObservableCollection <SillyDudeVmo> >(ApplicationExceptions.ToString, SillyResources.Empty_Screen);
        }