public FilepathHighlightTextRenderer(FilepathTextMatchFilter filter)
     : base(filter)
 {
     CornerRoundness = 0;
     FillBrush       = new System.Drawing.SolidBrush(System.Drawing.Color.Goldenrod);
     FramePen        = null;
 }
		public FilepathHighlightTextRenderer(FilepathTextMatchFilter filter)
			: base(filter) {

			CornerRoundness = 0;
			FillBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Goldenrod);
			FramePen = null;
		}
Example #3
0
        private void TimedFilter() {
            string txt = txtFilterText.Text.Trim();
            if (txt.Length == 0) {
                listView.DefaultRenderer = null;
                listView.ModelFilter = null;

                SetInfoState("GRF " + Path.GetFileName(mGrfFilepath) + " successfully opened (" + mGrfFile.Files.Count + " Files)", Resources.check);
                return;
            }

            var filter = new FilepathTextMatchFilter(listView, txt, TextMatchFilter.MatchKind.Regex);
            listView.DefaultRenderer = new FilepathHighlightTextRenderer(filter);
            listView.ModelFilter = filter;

            SetInfoState("Found " + listView.GetItemCount() + " files", Resources.information);
        }