static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Favorites f = new Favorites("Favorites.txt"); Application.Run(new Player(f)); }
public Player(Favorites favorites) { InitializeComponent(); InitializePlayList(); InitializeTextBoxes(); this._favorites = favorites; favorites.LoadToPlaylist(this.PlayList); MediaPlayer.PlayStateChange += MediaPlayer_PlayStateChange; _hasLoaded = true; }