protected Dictionary <Pages, GetJSON> FetcherUsers;//每一页都有固定位置 public void RegisterFetcherUser(GetJSON User, bool AddAnyWay = false) { if (!AddAnyWay) { foreach (var m in FetcherUsers) { if (m.Value == User || m.Key == User.DestPage) { break; } } } Debug.WriteLine("已加入一个FetcherUser Type:" + User.DestPage.ToString()); User.ChangeFetcher(Fetcher_Now); FetcherUsers[User.DestPage] = User; }
public bool SetConcreteUser(GetJSON input) { input.ChangeFetcher(Fetcher_Now); FetcherUsers[input.DestPage] = input; return(true); }