Esempio n. 1
0
        public static BindingSource GetCaravanBindingSource()
        {
            Dictionary <ushort, SimpleVillager> WA_Database = VillagerInfo.GetVillagerDatabase(SaveType.Welcome_Amiibo);

            if (WA_Database != null)
            {
                foreach (var v in WA_Special_Villagers)
                {
                    SimpleVillager SpecialVillager = new SimpleVillager();
                    SpecialVillager.Villager_ID = v.Key;
                    SpecialVillager.Name        = v.Value;
                    WA_Database.Add(v.Key, SpecialVillager);
                }
                return(new BindingSource(WA_Database, null));
            }
            return(new BindingSource(WA_Special_Villagers, null));
        }
Esempio n. 2
0
        public static BindingSource GetCaravanBindingSource()
        {
            var waDatabase = VillagerInfo.GetVillagerDatabase(SaveType.WelcomeAmiibo);

            if (waDatabase == null)
            {
                return(new BindingSource(WaSpecialVillagers, null));
            }
            foreach (var v in WaSpecialVillagers)
            {
                var specialVillager = new SimpleVillager
                {
                    VillagerId = v.Key,
                    Name       = v.Value
                };
                waDatabase.Add(v.Key, specialVillager);
            }

            return(new BindingSource(waDatabase, null));
        }