Beispiel #1
0
        internal TabMusicUI(TabMusic tabMusic)
        {
            InitializeComponent();
            DataContext = this;
            Tab         = tabMusic;

            ContentRoot.Children.Add(new SongListView(Tab));

            Player.SetTab(Tab);
        }
Beispiel #2
0
        internal void SetTab(TabMusic tab)
        {
            InitializeComponent();

            Tab = tab;

            Tab.Player.StatusChangeEvent += Player_StatusChanged; // Listen for the player events

            DispatcherTimer timer = new DispatcherTimer();        // Update the time bar every 100 milliseconds

            timer.Interval = TimeSpan.FromMilliseconds(100);
            timer.Tick    += Timer_Tick;
            timer.Start();
        }
 internal void SetTab(TabMusic tab)
 {
     Tab = tab;
     InitializeComponent();
     ArtistsBox.ItemsSource = Tab.GetSongList(SongListType.ARTIST);
 }
 internal ArtistListView(TabMusic tab)
 {
     SetTab(tab);
 }
Beispiel #5
0
 internal void SetTab(TabMusic tab)
 {
     Tab = tab;
     InitializeComponent();
     SongBox.ItemsSource = Tab.Songs;
 }
Beispiel #6
0
 internal SongListView(TabMusic tab)
 {
     SetTab(tab);
 }