public MainWindow() { InitializeComponent(); playlist = new Playlist(ref MediaPlayer, ref ImagePlayer); FFinder = new FFinder(); MWInterface = new MWInterface(); timer = new System.Windows.Threading.DispatcherTimer(); this.Height = 720; this.Width = 1280; this.setIcons(); this.FFinder.onStartup(); playlist.elems = this.FFinder.getDataTable(); FileList.DataContext = playlist.elems.DefaultView; VolumeSlider.DataContext = playlist; timer.Tick += TimerTick; }
public static void CreatePlaylist() { if (_playlistViewModel == null) { _playlistViewModel = new Playlist(); } }
public static void ClearPlaylist() { _playlistViewModel.Cleanup(); _playlistViewModel = null; }