private void Item_DeletePlaylistEvent(object sender, Code.Playlist.Playlist e)
 {
     if (e != null)
     {
         UI.UIPlaylist uiU = this.list_Box_Item.SelectedItem as UI.UIPlaylist;
         this.list_Box_Item.SelectedIndex = -1;
         uiU.Animation_Opacity_View_Frame(false, () =>
         {
             this.list_Box_Item.Items.Remove(uiU);
             this.Datas.Remove(uiU.Playlist);
             if (this.to < this.totalUser)
             {
                 this.Datas = App.curUser.LoadPlaylist(from, to, out totalUser);
                 LoadGUI();
             }
         });
     }
 }
 private void LoadGUI()
 {
     this.list_Box_Item.Items.Clear();
     if (this.Datas != null)
     {
         foreach (Code.Playlist.Playlist data in this.Datas)
         {
             UI.UIPlaylist item = new UI.UIPlaylist();
             item.Playlist = data;
             item.Height   = 260;
             item.Width    = 200;
             item.ViewInfoPlaylistEvent += Item_ViewInfoPlaylistEvent;
             item.DeletePlaylistEvent   += Item_DeletePlaylistEvent;
             item.ChangeDefaultEvent    += Item_ChangeDefaultEvent;
             item.ViewMediaEvent        += item_ViewMediaEvent;
             //item.ViewPermison += Item_ViewPermison;
             this.list_Box_Item.Items.Add(item);
         }
     }
     if (to < totalUser)
     {
         this.UIRightBtn.Foreground = Brushes.DarkOrange;
     }
     else
     {
         this.UIRightBtn.Foreground = Brushes.Gray;
     }
     if (this.from > 0)
     {
         this.UILeftBtn.Foreground = Brushes.DarkOrange;
     }
     else
     {
         this.UILeftBtn.Foreground = Brushes.Gray;
     }
 }
 private void LoadGUI()
 {
     this.list_Box_Item.Items.Clear();
     if (this.Datas != null)
     {
         foreach (Code.Playlist.Playlist data in this.Datas)
         {
             UI.UIPlaylist item = new UI.UIPlaylist();
             item.Playlist = data;
             item.Height = 260;
             item.Width = 200;
             item.ViewInfoPlaylistEvent += Item_ViewInfoPlaylistEvent;
             item.DeletePlaylistEvent += Item_DeletePlaylistEvent;
             item.ChangeDefaultEvent += Item_ChangeDefaultEvent;
             item.ViewMediaEvent += item_ViewMediaEvent;
             //item.ViewPermison += Item_ViewPermison;
             this.list_Box_Item.Items.Add(item);
         }
     }
     if (to < totalUser)
     {
         this.UIRightBtn.Foreground = Brushes.DarkOrange;
     }
     else
     {
         this.UIRightBtn.Foreground = Brushes.Gray;
     }
     if (this.from > 0)
     {
         this.UILeftBtn.Foreground = Brushes.DarkOrange;
     }
     else
     {
         this.UILeftBtn.Foreground = Brushes.Gray;
     }
 }