Example #1
0
 /// <summary>
 ///   <see cref="RegexInputForm"/> classの初期化
 /// </summary>
 /// <param name="regexCategory">検索区分</param>
 public RegexInputForm(RegexCategory regexCategory)
 {
     _category = regexCategory;
     if (_category != RegexCategory.NewProject)
     {
         _keyword = new FrameKeywordSerializer().Load();
     }
     //
     InitializeComponent();
 }
Example #2
0
        public List <RegexCategory <Product> > GetProductRegexs(List <Product> prods)
        {
            List <RegexCategory <Product> > rcs = new List <RegexCategory <Product> >();

            foreach (Product p in prods)
            {
                RegexCategory <Product> rc = new RegexCategory <Product>(new Regex($"\\s{p.ProductName}[\\s\\,\\./\\!\\'\\\"\\`]", RegexOptions.IgnoreCase), p);
                rcs.Add(rc);
            }
            return(rcs);
        }
Example #3
0
        public List <RegexCategory <Company> > GetCompanyRegexs(List <Company> comps)
        {
            List <RegexCategory <Company> > rcs = new List <RegexCategory <Company> >();

            foreach (Company c in comps)
            {
                RegexCategory <Company> rc = new RegexCategory <Company>(new Regex($"\\s{c.CompanyName}[\\s\\,\\./\\!\\'\\\"\\`]", RegexOptions.IgnoreCase), c);
                rcs.Add(rc);
            }
            return(rcs);
        }