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