Beispiel #1
0
 private void Btn_Play_Click(object sender, EventArgs e)
 {
     MyResources.Main.PlayingTab.LoadSongAlbum(GetID());
     MyResources.Main.SongAblumTab.RemoveAlbumPlaying();
     SetPlayingAlbum();
     Lb_Name.Focus();
 }
Beispiel #2
0
 private void Btn_Del_Click(object sender, EventArgs e)
 {
     MyResources.Main.SetCursorLoading();
     Name = "Del";
     MyResources.Main.PlayingTab.DeleteItemInNowPlaylist();
     Lb_Name.Focus();
     MyResources.Main.SetCursorDefault();
 }
Beispiel #3
0
        private void Btn_Edit_Click(object sender, EventArgs e)
        {
            EditPlaylist edit = new EditPlaylist();

            edit.SetData(Convert.ToInt32(Btn_Edit.Name), Name);
            edit.ShowDialog();
            Lb_Name.Focus();
        }
Beispiel #4
0
 private void Btn_Status_Click(object sender, EventArgs e)
 {
     MyResources.Main.SetCursorLoading();
     MyResources.Main.PlayingTab.RemovePlaying();
     if (Name == "")
     {
         SetPLaying();
     }
     Lb_Name.Focus();
     MyResources.Main.SetCursorDefault();
 }
        private void Btn_AddPlaylist_Click(object sender, EventArgs e)
        {
            MyResources.Main.SetCursorLoading();
            var add = new AddSongToPlaylist();
            var s   = MyResources.Resources.MsgSongs.FindSongByID(Convert.ToInt32((Tag as Dictionary <string, string>)["id"]));

            add.SetData(s);
            add.ShowDialog();
            Lb_Name.Focus();
            MyResources.Main.SetCursorDefault();
        }
Beispiel #6
0
 private void Btn_Play_Click(object sender, EventArgs e)
 {
     if (CheckPlayingPlaylist())
     {
         return;
     }
     MyResources.Main.PlayingTab.LoadPlaylist(GetID());
     MyResources.Main.PlaylistTab.RemovePlayplistPlaying();
     SetPlayingPlaylist();
     Lb_Name.Focus();
 }
Beispiel #7
0
 private void Lb_Name_Click(object sender, EventArgs e)
 {
     if (CheckSelected())
     {
         return;
     }
     MyResources.Main.SetCursorLoading();
     MyResources.Main.PlaylistTab.LoadPlaylistInfoByID(GetID());
     MyResources.Main.PlaylistTab.RemoveSelectedPlaylist();
     SetSelected();
     Lb_Name.Focus();
     MyResources.Main.SetCursorDefault();
 }
Beispiel #8
0
        private void Btn_Del_Click(object sender, EventArgs e)
        {
            MyResources.Main.SetCursorLoading();
            var tag = Tag as Dictionary <string, string>;

            MyResources.Resources.DeleteItemInPlaylistID(
                Convert.ToInt32(tag["id"]),
                Convert.ToInt32(tag["id_playlist"]),
                tag["type"]);
            Name = "del";
            MyResources.Main.PlaylistTab.RemoveItemInfo();
            Lb_Name.Focus();
            MyResources.Main.SetCursorDefault();
        }
Beispiel #9
0
 private void Btn_Del_Click(object sender, EventArgs e)
 {
     MyResources.Resources.DeletePlaylistByID(Convert.ToInt32(Btn_Del.Name));
     MyResources.Main.PlaylistTab.RemovePlaylistByID(GetID());
     Lb_Name.Focus();
 }