public ChatProcessor(WebTranslator webTranslator) { this._TextArrivedArrived = new AsyncEvent <ChatMessageArrivedEventArgs>(this.EventErrorHandler, "TranslationArrived"); _AllChatCodes = Helper.LoadJsonData <List <ChatMsgType> >(GlobalSettings.ChatCodesFilePath); _WebTranslator = webTranslator; MsgBlackList = new List <string>(); Init(); _LastTranslationTime = DateTime.UtcNow; }
public TataruUIModel() { this._ChatWindowsListChangedAsync = new AsyncEvent <AsyncListChangedEventHandler <ChatWindowViewModelSettings> >(this.EventErrorHandler, "TataruUIModel \n ChatWindowsListChangedAsync"); this._AsyncPropertyChanged = new AsyncEvent <AsyncPropertyChangedEventArgs>(this.EventErrorHandler, "AsyncPropertyChanged"); this._IsHideSettingsToTrayChanged = new AsyncEvent <BooleanChangeEventArgs>(this.EventErrorHandler, "IsHideSettingsToTrayChanged"); this._IsDirecMemoryReadingChanged = new AsyncEvent <BooleanChangeEventArgs>(this.EventErrorHandler, "IsDirecMemoryReadingChanged"); this._SettingsWindowSizeChanged = new AsyncEvent <PointDValueChangeEventArgs>(this.EventErrorHandler, "SettingsWindowSizeChanged"); this._UiLanguageChanged = new AsyncEvent <IntegerValueChangeEventArgs>(this.EventErrorHandler, "UiLanguageChanged"); this.ChatWindows = new AsyncBindingList <ChatWindowViewModelSettings>(); }