Example #1
0
 /// <summary>
 ///   Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string.
 /// </summary>
 public virtual bool Matches(string text)
 {
     if (Caption == null)
     {
         return(false);
     }
     return(Caption.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) != -1);
 }
Example #2
0
 public override bool IsCriteriaMatched(string criteria)
 {
     if (!this.MetadataPane.ShowHiddenObjects && !this.IsVisible)
     {
         return(false);
     }
     return(String.IsNullOrEmpty(criteria) || Caption.IndexOf(criteria, StringComparison.InvariantCultureIgnoreCase) >= 0);
 }
        public RunningApplication(KeyValuePair <int, object> process)
        {
            ComObject = process.Value;
            Build     = $"E3.Series {((dynamic)ComObject).GetBuild()}";
            Caption   = WinApi.GetText(Process.GetProcessById(process.Key).MainWindowHandle);

            // Check for multiuser version
            IsMultiuser = Caption.IndexOf("Multi", StringComparison.InvariantCultureIgnoreCase) >= 0;
        }
Example #4
0
        public string GenerateHtmlForTags(string[] tags)
        {
            StringBuilder htmlBuilder = new StringBuilder();


            for (int i = 0; i < tags.Length; i++)
            {
                string tag = tags[i];

                string encodedTags;
                if (String.IsNullOrEmpty(EncodingName))
                {
                    encodedTags = HttpUtility.UrlEncode(tag);
                }
                else
                {
                    encodedTags = HttpUtility.UrlEncode(tag, Encoding.GetEncoding(EncodingName));
                }

                string finalHtml = HtmlFormat.Replace(TAG_TOKEN, HttpUtility.HtmlEncode(tag));
                finalHtml = finalHtml.Replace(TAG_ENCODED_TOKEN, HttpUtility.HtmlEncode(encodedTags));

                htmlBuilder.Append(finalHtml);
                if (i < (tags.Length - 1))
                {
                    htmlBuilder.Append(Separator);
                }
            }


            string tagGroup = htmlBuilder.ToString();

            if (Caption.IndexOf(TAG_GROUP_TOKEN) > -1)
            {
                return(Caption.Replace(TAG_GROUP_TOKEN, tagGroup));
            }
            else
            {
                return(Caption + tagGroup);
            }
        }
Example #5
0
 public override bool IsCriteriaMatched(string criteria)
 {
     return(String.IsNullOrEmpty(criteria) || Caption.IndexOf(criteria, StringComparison.InvariantCultureIgnoreCase) >= 0);
 }