public void Remove(string mID) { int num = ID.IndexOf(mID); if (num != -1) { Galleries.RemoveAt(num); ID.RemoveAt(num); DownloadPage.RemoveAt(num); TotalPage.RemoveAt(num); } }
public void Add(Gallerie mID, int mDownloadPage, int mTotalPage) { int num = ID.IndexOf(mID.ID); if (num == -1) { if (mDownloadPage == 0) { Galleries.Add(mID); ID.Add(mID.ID); DownloadPage.Add(mDownloadPage); TotalPage.Add(mTotalPage); } } else { DownloadPage[num] = mDownloadPage; TotalPage[num] = mTotalPage; } }