/// <summary>
 /// The selected item changed on a music home page
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void MusicHomeOne_OnSelectionChanged(object sender, CarPC.Dashboard.MusicItem e)
 {
     switch (e.ItemType)
     {
         case CarPC.Dashboard.MusicType.Album:
             //Display the album music page
             break;
         case CarPC.Dashboard.MusicType.Artist:
             //Display the artist music page
             break;
         case CarPC.Dashboard.MusicType.Genre:
             //Display the genre music page
             transMain.Content = Session.MusGenreHome;
             break;
     }
 }
 /// <summary>
 /// The selected file in the music genre page changed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void curMusicGenrePage_OnSelectionChanged(object sender, CarPC.Song e)
 {
     //Insert all songs in the currrent genre into the musicQueue and play the selected one
     Session.CurMusicQueue.AddNPlay(Session.CurMusicGenrePage.Songs, e);
 }
        /// <summary>
        /// The selected item changed on the genre home page
        /// </summary>  
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void MusGenreHome_OnSelectionChanged(object sender, CarPC.Dashboard.MusicGenreItem e)
        {
            Session.CurMusicGenrePage = new CarUI.MusicGenre(e.ItemType);
            Session.CurMusicGenrePage.OnSelectionChanged += curMusicGenrePage_OnSelectionChanged;

            transMain.Content = Session.CurMusicGenrePage;
        }
 /// <summary>
 /// The selected dashboard item changed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void CurDashboard_OnSelectionChanged(object sender, CarPC.Dashboard.DashboardItem e)
 {
     switch (e.ItemType)
     {
         case CarPC.Dashboard.DashboardType.Music:
             //Display the Music screen
             transMain.Content = Session.MusicHomeOne;
             Session.CurrentScreen = DisplayScreen.MusicHome;
             break;
         case CarPC.Dashboard.DashboardType.Power:
             //Display the power screen
             transMain.Content = new CarUI.Power();
             Session.CurrentScreen = DisplayScreen.Power;
             break;
         case CarPC.Dashboard.DashboardType.Settings:
             //Display the settings screen
             transMain.Content = Session.DashboardTwo;
             Session.CurrentScreen = DisplayScreen.Dashboard;
             break;
         case CarPC.Dashboard.DashboardType.Browse:
             //Display the file browser
             transMain.Content = Session.Browser;
             Session.CurrentScreen = DisplayScreen.Browser;
             toolbarMain.ToggleBackButton(Session.Browser.BackNavEnabled);
             break;
     }
 }