Exemple #1
0
        private void Engine_OptionsChanged(IRegexEngine sender, RegexEngineOptionsChangedArgs args)
        {
            if (!IsFullyLoaded)
            {
                return;
            }
            if (IsInChange)
            {
                return;
            }

            if (object.ReferenceEquals(sender, CurrentRegexEngine))
            {
                HandleOptionsChange(preferImmediateReaction: args?.PreferImmediateReaction == true);
            }
            else
            {
                // inactive engine; ignore
            }
        }
Exemple #2
0
 private void OptionsControl_Changed(object sender, RegexEngineOptionsChangedArgs args)
 {
     OptionsChanged?.Invoke(this, args);
 }