示例#1
0
        private void WorldIconsToggle(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.WorldIcons = WorldIconsOption.IsChecked;
            if (WorldIconsOption.IsChecked)
            {
                SorasHeart.SetResourceReference(ContentProperty, "SoraHeartImage");
                SimulatedTwilightTown.SetResourceReference(ContentProperty, "SimulatedImage");
                HollowBastion.SetResourceReference(ContentProperty, "HollowBastionImage");
                OlympusColiseum.SetResourceReference(ContentProperty, "OlympusImage");
                LandofDragons.SetResourceReference(ContentProperty, "LandofDragonsImage");
                PrideLands.SetResourceReference(ContentProperty, "PrideLandsImage");
                HalloweenTown.SetResourceReference(ContentProperty, "HalloweenTownImage");
                SpaceParanoids.SetResourceReference(ContentProperty, "SpaceParanoidsImage");
                GoA.SetResourceReference(ContentProperty, "GardenofAssemblageImage");

                DriveForms.SetResourceReference(ContentProperty, "DriveFormsImage");
                TwilightTown.SetResourceReference(ContentProperty, "TwilightTownImage");
                BeastsCastle.SetResourceReference(ContentProperty, "BeastCastleImage");
                Agrabah.SetResourceReference(ContentProperty, "AgrabahImage");
                HundredAcreWood.SetResourceReference(ContentProperty, "HundredAcreImage");
                DisneyCastle.SetResourceReference(ContentProperty, "DisneyCastleImage");
                PortRoyal.SetResourceReference(ContentProperty, "PortRoyalImage");
                TWTNW.SetResourceReference(ContentProperty, "TWTNWImage");
                Atlantica.SetResourceReference(ContentProperty, "AtlanticaImage");
            }
            else
            {
                SorasHeart.SetResourceReference(ContentProperty, "SoraHeartText");
                SimulatedTwilightTown.SetResourceReference(ContentProperty, "SimulatedText");
                HollowBastion.SetResourceReference(ContentProperty, "HollowBastionText");
                OlympusColiseum.SetResourceReference(ContentProperty, "OlympusText");
                LandofDragons.SetResourceReference(ContentProperty, "LandofDragonsText");
                PrideLands.SetResourceReference(ContentProperty, "PrideLandsText");
                HalloweenTown.SetResourceReference(ContentProperty, "HalloweenTownText");
                SpaceParanoids.SetResourceReference(ContentProperty, "SpaceParanoidsText");
                GoA.SetResourceReference(ContentProperty, "GardenofAssemblageText");

                DriveForms.SetResourceReference(ContentProperty, "DriveFormsText");
                TwilightTown.SetResourceReference(ContentProperty, "TwilightTownText");
                BeastsCastle.SetResourceReference(ContentProperty, "BeastCastleText");
                Agrabah.SetResourceReference(ContentProperty, "AgrabahText");
                HundredAcreWood.SetResourceReference(ContentProperty, "HundredAcreText");
                DisneyCastle.SetResourceReference(ContentProperty, "DisneyCastleText");
                PortRoyal.SetResourceReference(ContentProperty, "PortRoyalText");
                TWTNW.SetResourceReference(ContentProperty, "TWTNWText");
                Atlantica.SetResourceReference(ContentProperty, "AtlanticaText");
            }
        }
示例#2
0
        public string FindCode(string code)
        {
            if (Free.Contains(code))
            {
                return("GoA");
            }
            if (SimulatedTwilightTown.Contains(code))
            {
                return("Simulated Twilight Town");
            }
            if (TwilightTown.Contains(code))
            {
                return("Twilight Town");
            }
            if (HollowBastion.Contains(code))
            {
                return("Hollow Bastion");
            }
            if (LandOfDragons.Contains(code))
            {
                return("Land of Dragons");
            }
            if (BeastsCastle.Contains(code))
            {
                return("Beasts Castle");
            }
            if (OlympusColiseum.Contains(code))
            {
                return("Olympus Coliseum");
            }
            if (DisneyCastle.Contains(code))
            {
                return("Disney Castle");
            }
            if (PortRoyal.Contains(code))
            {
                return("Port Royal");
            }
            if (Agrabah.Contains(code))
            {
                return("Agrabah");
            }
            if (HalloweenTown.Contains(code))
            {
                return("Halloween Town");
            }
            if (PrideLands.Contains(code))
            {
                return("Pride Lands");
            }
            if (Atlantica.Contains(code))
            {
                return("Atlantica");
            }
            if (AcreWood.Contains(code))
            {
                return("Hundred Acre Wood");
            }
            if (SpaceParanoids.Contains(code))
            {
                return("Space Paranoids");
            }
            if (TheWorldThatNeverWas.Contains(code))
            {
                return("TWTNW");
            }
            if (Forms.Contains(code))
            {
                return("Drive Forms");
            }
            if (Levels.Contains(code))
            {
                return("Soras Heart");
            }

            return("");
        }