Пример #1
0
 public Playlists(Create_Playlist create)
 {
     InitializeComponent();
     CustomizeDesign();
     create.pasadom += new Create_Playlist.pasarm(ejecutar);
     create.pasados += new Create_Playlist.pasars(ejecutars);
 }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();
            foldersongs();
            CustomizeDesign();
            Deserializesongs();

            ImportSong  = new ImportSong();
            ImportMovie = new ImportMovie();
            MediaPlayer = new MediaPlayer();
            Create      = new Create_Playlist();
            Playlists   = new Playlists(Create);
            Library     = new Library();
            YouTube     = new YouTube();



            ListBox mylist = new ListBox();

            mylist.Dock        = DockStyle.Fill;
            mylist.BackColor   = Color.RoyalBlue;
            mylist.Font        = new Font("Georgia", 16);
            mylist.ForeColor   = Color.White;
            mylist.Size        = new Size(808, 610);
            mylist.BorderStyle = BorderStyle.Fixed3D;


            try
            {
                foreach (Song i in Songsdata)
                {
                    mylist.Items.Add(i.filename);
                }
            }
            catch (ArgumentOutOfRangeException e)
            {
            }


            Library.Controls.Add(mylist);
        }