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

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            if( PredictionTextAreaService.Status == InternalRunningStatus.Starting )
            {
                PredictionTextAreaService.Service.PredictionAreaTextSent -= OnPredictionAreaContentSent;
                PredictionTextAreaService.Service.PredictionAreaContentChanged -= OnPredictionAreaServicePropertyChanged;
            }
            PredictionTextAreaService.ServiceStatusChanged -= OnPredictionAreaServiceStatusChanged;

            if( CommandTextualContextService.Status == InternalRunningStatus.Starting )
            {
                CommandTextualContextService.Service.TextualContextClear -= OnTextualContextClear;
            }
            CommandTextualContextService.ServiceStatusChanged -= OnCommandTextualContextServiceStatusChanged;

            if( SendKeyService.Status == InternalRunningStatus.Started )
            {
                SendKeyService.Service.KeySent -= OnOldKeySent;
            }
            SendKeyService.ServiceStatusChanged -= OnSendKeyServiceStatusChanged;

            if( SendStringService.Status == InternalRunningStatus.Started )
            {
                SendStringService.Service.StringSent -= OnStringSent;
                SendStringService.Service.KeySent -= OnKeySent;
            }
            SendStringService.ServiceStatusChanged -= OnSendStringServiceStatusChanged;
        }