private void ParseUrl(string url) { matchResult = RuleParser.ParseUrl(url); string pageStr = matchResult["page"]; try { StartPage = (pageStr != null) ? int.Parse(pageStr) : 0; } catch (Exception) { StartPage = 0; } CurrentPage = StartPage; }
public string getGalleryUrl(string idCode, int page, List <Picture> pictures) { Object[] array = (pictures != null) ? pictures.ToArray() : null; return(RuleParser.ParseUrl(galleryUrl, page, idCode, "", array)); }
public string getListUrl(string url, int page, string keyword, List <Collection> collections) { Object[] array = (collections != null) ? collections.ToArray() : null; return(RuleParser.ParseUrl(url, page, "", keyword, array)); }