CK.WordPredictor.TextualContextService.OnCommandTextualContextServiceStatusChanged C# (CSharp) Method

OnCommandTextualContextServiceStatusChanged() static private method

static private OnCommandTextualContextServiceStatusChanged ( object sender, CK.Plugin.ServiceStatusChangedEventArgs e ) : void
sender object
e CK.Plugin.ServiceStatusChangedEventArgs
return void
        void OnCommandTextualContextServiceStatusChanged( object sender, ServiceStatusChangedEventArgs e )
        {
            if( e.Current <= InternalRunningStatus.Stopping )
            {
                CommandTextualContextService.Service.TextualContextClear -= OnTextualContextClear;
            }
            if( e.Current == InternalRunningStatus.Starting )
            {
                CommandTextualContextService.Service.TextualContextClear += OnTextualContextClear;
            }
        }