Exemple #1
0
            private uint?addSpellCheckerChangedImplWithRetries(ISpellCheckerChangedEventHandler handler, bool suppressCOMExceptions)
            {
                uint?eventCookie;
                bool callSucceeded =
                    RetryHelper.TryExecuteFunction(
                        func: () => add_SpellCheckerChangedImpl(handler),
                        result: out eventCookie,
                        preamble: () => Init(suppressCOMExceptions),
                        ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);

                return(callSucceeded ? eventCookie : null);
            }
Exemple #2
0
 private uint?add_SpellCheckerChanged(ISpellCheckerChangedEventHandler handler, bool suppressCOMExceptions = true)
 {
     return(_disposed ? null : addSpellCheckerChangedImplWithRetries(handler, suppressCOMExceptions));
 }
Exemple #3
0
 private uint?add_SpellCheckerChangedImpl(ISpellCheckerChangedEventHandler handler)
 {
     return((handler != null) ? (uint?)null : _speller.Value.add_SpellCheckerChanged(handler));
 }