private void InitEvent() { if (_eventAggregator == null) { return; } _textChangedEvent = _eventAggregator.GetEvent <TextChangedEvent>(); _textChangedEvent.Subscribe(OnTextChanged); _requestTextEvent = _eventAggregator.GetEvent <RequestTextEvent>(); _requestTextEvent.Subscribe(OnRequestText); _saveTextEvent = _eventAggregator.GetEvent <SaveTextEvent>(); _saveTextEvent.Subscribe(OnSaveText); _cacheTextEvent = _eventAggregator.GetEvent <CacheTextEvent>(); _cacheTextEvent.Subscribe(OnCacheText); }
private void InitEvent() { if (_eventAggregator == null) { return; } _requestSettingEvent = _eventAggregator.GetEvent <RequestSettingEvent>(); _requestSettingEvent.Subscribe(OnRequestSetting); _textChangedEvent = _eventAggregator.GetEvent <TextChangedEvent>(); _textChangedEvent.Subscribe(OnTextChanged, ThreadOption.UIThread); _requestTextEvent = _eventAggregator.GetEvent <RequestTextEvent>(); _requestTextEvent.Subscribe(OnRequestText); _saveTextEvent = _eventAggregator.GetEvent <SaveTextEvent>(); _saveTextEvent.Subscribe(OnSaveText, ThreadOption.UIThread); }