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;
}
}