AniDBmini.AniDBAPI.MyListDel C# (CSharp) Method

MyListDel() public method

public MyListDel ( int lid ) : bool
lid int
return bool
        public bool MyListDel(int lid)
        {
            return Execute(String.Format("MYLISTDEL lid={0}", lid)).Code == RETURN_CODE.MYLIST_ENTRY_DELETED;
        }

Usage Example

示例#1
0
        private void RemoveFromList_Click(object sender, RoutedEventArgs e)
        {
            FileEntry fEntry = (FileEntry)(sender as MenuItem).Tag;

            if (m_aniDBAPI.MyListDel(fEntry.lid))
            {
                if (!String.IsNullOrEmpty(fEntry.path))
                {
                    AniDBAPI.AppendDebugLine(String.Format("Removed {0} from mylist.", Path.GetFileName(fEntry.path)));
                }

                m_myList.DeleteFile(fEntry.lid);
                MylistTreeListView.Refresh();
            }
        }