void Player_Music_MediaEnded(object sender, EventArgs e) { Image_Slider.Visibility = System.Windows.Visibility.Hidden; if (UC_Toolbar_Play.Check_Again.IsChecked == true) { Key_Controller = 2; Init_Open_Music(List_Collection.Get_Song_Current_ListPlay()); UC_Toolbar_Play_Click_Play(); return; } if (++List_Collection.Current_NowPlaying >= List_Collection.List_NowPlaying.Count) { if (UC_Toolbar_Play.Check_Round.IsChecked == true) { List_Collection.Current_NowPlaying = 0; Key_Controller = 2; List_Now_Playing.SelectedIndex = List_Collection.Current_NowPlaying; Init_Open_Music(List_Collection.Get_Song_Current_ListPlay()); UC_Toolbar_Play_Click_Play(); } return; } List_Now_Playing.SelectedIndex = List_Collection.Current_NowPlaying; Init_Open_Music(List_Collection.Get_Song_Current_ListPlay()); UC_Toolbar_Play_Click_Play(); }
private void List_Now_Playing_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Song temp = new Song(); temp = List_Collection.GetSong_Playing(List_Now_Playing.SelectedIndex); Begin_Wait("Loading Song '" + temp.Name_Song + "' . . ."); Init_Open_Music(temp); List_Collection.Current_NowPlaying = List_Now_Playing.SelectedIndex; UC_Toolbar_Play_Click_Play(); }
void Add_To_List_NowPlaying(List <Song> l_s) { for (int i = 0; i < l_s.Count; i++) { if (l_s != null) { ListViewItem lvi = new ListViewItem(); lvi.Content = l_s[i].Name_Song; List_Now_Playing.Items.Add(lvi); } } List_Collection.AddListSongNowPlaying(l_s); }
private void Main_Window_Loaded(object sender, RoutedEventArgs e) { List_Collection.Init_List_Collection(); List_Collection.Current_NowPlaying = -1; Init_Player(); Init_Data_Program(); Init_UC_Connection_Offline(); Init_UC_Connection_Online(); Init_UC_Toolbar_MME(); Init_UC_Toolbar_Play(); Init_UC_Search_Tool(); Init_Slider_Volume(); Init_UC_Viewer(); UC_Connection_Offline.Init_Control(); UC_Connection_Online.Init_Data_First(); }
void UC_Toolbar_Play_Click_Next() { if (++List_Collection.Current_NowPlaying >= List_Collection.List_NowPlaying.Count) { List_Collection.Current_NowPlaying = List_Collection.List_NowPlaying.Count - 1; if (UC_Toolbar_Play.Check_Round.IsChecked == true) { List_Collection.Current_NowPlaying = 0; Key_Controller = 2; List_Now_Playing.SelectedIndex = List_Collection.Current_NowPlaying; Init_Open_Music(List_Collection.Get_Song_Current_ListPlay()); UC_Toolbar_Play_Click_Play(); } return; } Player_Music.Stop(); List_Now_Playing.SelectedIndex = List_Collection.Current_NowPlaying; Init_Open_Music(List_Collection.Get_Song_Current_ListPlay()); UC_Toolbar_Play.Is_Play = false; Key_Controller = 2; UC_Toolbar_Play_Click_Play(); }
void Init_Var() { List_Collection = new Process.List_Collection(); }
private void List_Now_Playing_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { NowSong_Click = List_Collection.GetSong_Playing(List_Now_Playing.SelectedIndex); NowVideo_Click = null; Key_Controller = 1; }