Example #1
0
        public SongManager(SongBundle bundle)
        {
            InitializeComponent();
            Songbundle = bundle;

            foreach (Song item in bundle.Songs)
            {
                LIST_Songs.Items.Add(item);
            }

            HasSaved = false;
        }
 public ProjectRessources(SerializationInfo info, StreamingContext context)
 {
     Maps = (List<Map>)info.GetValue("Maps", typeof(List<Map>));
     Sprites = (SpriteBundle)info.GetValue("Sprites", typeof(SpriteBundle));
     CommunPevents = (List<Pevent>)info.GetValue("CommunPevents", typeof(List<Pevent>));
     Songs = (SongBundle)info.GetValue("Songs", typeof(SongBundle));
     Classes = (PeventClassBundle)info.GetValue("PeventClassBundle", typeof(PeventClassBundle));
     Icons = (List<pIcon>)info.GetValue("Icons", typeof(List<pIcon>));
     Sounds = (SoundBundle)info.GetValue("Sounds", typeof(SoundBundle));
     Animations = (List<Animation>)info.GetValue("Animations", typeof(List<Animation>));
     Elements = (List<Elemental>)info.GetValue("Elements", typeof(List<Elemental>));
     Battlers = (List<Battler>)info.GetValue("Battlers", typeof(List<Battler>));
 }
 public ProjectRessources()
 {
     Maps = new List<Map>();
     Sprites = new SpriteBundle();
     CommunPevents = new List<Pevent>();
     Songs = new SongBundle();
     Classes = new PeventClassBundle();
     Icons = new List<pIcon>();
     Sounds = new SoundBundle();
     Animations = new List<Animation>();
     Elements = new List<Elemental>();
     Battlers = new List<Battler>();
 }