Exemple #1
0
        public void Reset()
        {
            EList source = Model.ELists.Find(delegate(EList list)
            {
                return(list.Name == Name);
            });

            if (source == null)
            {
                return;
            }
            for (int i = 0; i < source.Indexes.Length && i < Indexes.Length; i++)
            {
                Indexes[i].Address     = source.Indexes[i].Address;
                Indexes[i].AddressBit  = source.Indexes[i].AddressBit;
                Indexes[i].Description = source.Indexes[i].Description;
                Indexes[i].Label       = source.Indexes[i].Label;
                Indexes[i].Index       = source.Indexes[i].Index;
            }
        }
        public void SetElement(string element)
        {
            this.element = element;
            if (project == null)
            {
                return;
            }
            switch (element)
            {
            case "Action Scripts": enotes = project.ActionScripts; break;

            case "Attacks": enotes = project.Attacks; break;

            case "Dialogues": enotes = project.Dialogues; break;

            case "Effects": enotes = project.Effects; break;

            case "Event Scripts": enotes = project.EventScripts; break;

            case "Formations": enotes = project.Formations; break;

            case "Items": enotes = project.Items; break;

            case "Levels": enotes = project.Levels; break;

            case "Monsters": enotes = project.Monsters; break;

            case "Packs": enotes = project.Packs; break;

            case "Shops": enotes = project.Shops; break;

            case "Spells": enotes = project.Spells; break;

            case "Sprites": enotes = project.Sprites; break;
            }
            elist = project.ELists.Find(delegate(EList list)
            {
                return(list.Name == element);
            });
        }