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

OnPredictionAreaServiceStatusChanged() private method

private OnPredictionAreaServiceStatusChanged ( object sender, CK.Plugin.ServiceStatusChangedEventArgs e ) : void
sender object
e CK.Plugin.ServiceStatusChangedEventArgs
return void
        private void OnPredictionAreaServiceStatusChanged( object sender, ServiceStatusChangedEventArgs e )
        {
            if( e.Current <= InternalRunningStatus.Stopping )
            {
                PredictionTextAreaService.Service.PredictionAreaTextSent -= OnPredictionAreaContentSent;
                PredictionTextAreaService.Service.PredictionAreaContentChanged -= OnPredictionAreaServicePropertyChanged;
            }
            if( e.Current == InternalRunningStatus.Starting )
            {
                PredictionTextAreaService.Service.PredictionAreaTextSent += OnPredictionAreaContentSent;
                PredictionTextAreaService.Service.PredictionAreaContentChanged += OnPredictionAreaServicePropertyChanged;
            }
        }