public TableFilter(string template) { string[] split; if (Regex.IsMatch(template, "[^=]+\\*=[^=]*")) { string data = "THExxQUICKxxBROWNxxFOX"; split = template.Split(new string[] { "\\*=" }, StringSplitOptions.None); name = split[0]; value = split[1]; type = CheckPageTypes.MATCH; return; } if (Regex.IsMatch(template, "[^=]+~=[^=]*")) { split = template.Split(new string[] { "~=" }, StringSplitOptions.None); name = split[0]; value = split[1]; type = CheckPageTypes.CONTAINS; return; } if (Regex.IsMatch(template, "[^=] +=[^=] * ")) { split = template.Split(new string[] { "=" }, StringSplitOptions.None); name = split[0]; value = split[1]; type = CheckPageTypes.EQUAL; return; } throw new ArgumentException("Wrong searchCriteria for Cells: " + template); }
public void UpdatePageData(string url, string title, CheckPageTypes checkUrlType, CheckPageTypes checkTitleType, string urlTemplate) { if (_url == null) Url = url; if (Title == null) Title = title; CheckUrlType = checkUrlType; CheckTitleType = checkTitleType; UrlTemplate = urlTemplate; }
public void UpdatePageData(string url, string title, CheckPageTypes checkUrlType, CheckPageTypes checkTitleType, string urlTemplate) { if (_url == null) { Url = url; } if (Title == null) { Title = title; } CheckUrlType = checkUrlType; CheckTitleType = checkTitleType; UrlTemplate = urlTemplate; }