Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

                        Favorites f = new Favorites("Favorites.txt");

            Application.Run(new Player(f));
        }
Beispiel #2
0
 public Player(Favorites favorites)
 {
     InitializeComponent();
                 InitializePlayList();
                 InitializeTextBoxes();
                 this._favorites = favorites;
                 favorites.LoadToPlaylist(this.PlayList);
                 MediaPlayer.PlayStateChange += MediaPlayer_PlayStateChange;
                 _hasLoaded = true;
 }