예제 #1
0
        public static void Save(IContactLoader loader, IEnumerable <Contact> contacts)
        {
            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            loader.Save(contacts);
        }
예제 #2
0
        public static IEnumerable <Contact> Load(IContactLoader loader)
        {
            if (loader == null)
            {
                throw new Exception("Missing quote loader from platform.");
            }

            return(loader.Load());
        }
예제 #3
0
        public static IEnumerable <Contact> Load(IContactLoader loader)
        {
            loader = DependencyService.Get <IContactLoader>();
            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            return(loader.Load());
        }
예제 #4
0
        public static void Save(IEnumerable <Contact> quotes)
        {
            IContactLoader loader = DependencyService.Get <IContactLoader>();

            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            loader.Save(quotes);
        }