예제 #1
0
 private void Controller_OnOpenItem(object item) {
     _loadedRegexPattern = (RegexPattern) item;
     Close(DialogResult.OK);
 }
예제 #2
0
 public void AddPattern(RegexPattern pattern) {
     if (_patterns.Contains(pattern))
         throw new PatternCategoryException("This Regex pattern already exists");
     _patterns.Add(pattern);
 }