Beispiel #1
0
        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;
        }
Beispiel #2
0
 public string getGalleryUrl(string idCode, int page, List <Picture> pictures)
 {
     Object[] array = (pictures != null) ? pictures.ToArray() : null;
     return(RuleParser.ParseUrl(galleryUrl, page, idCode, "", array));
 }
Beispiel #3
0
 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));
 }