public TataruViewModel(TataruUIModel tataruUIModel) { _TataruUIModel = tataruUIModel; _TataruUIModel.ChatCodesChanged += OnChatCodesChange; ChatCodes = new BindingList <ChatCodeViewModel>() { new ChatCodeViewModel("0039", "System", Colors.Aqua, true), }; }
public TataruViewModel(TataruUIModel tataruUIModel) { _TataruUIModel = tataruUIModel; _TataruUIModel.ChatCodesChanged += OnChatCodesChange; SwitchLanguageCommand = new TataruUICommand(ChangeUILanguageCommand); ChatCodes = new BindingList <ChatCodeViewModel>() { new ChatCodeViewModel("0039", "System", Colors.Aqua, true), }; }
public TataruViewModel(TataruModel tatruModel) { this._ChatWindowsListChangedAsync = new AsyncEvent <AsyncListChangedEventHandler <ChatWindowViewModel> >(this.EventErrorHandler, "TataruViewModel \n ChatWindowsListChangedAsync"); ChatWindows = new AsyncBindingList <ChatWindowViewModel>(); _TataruModel = tatruModel; _TataruUIModel = tatruModel.TataruUIModel; TranslationEngines = tatruModel.ChatProcessor.TranslationEngines; _AllChatCodes = tatruModel.ChatProcessor.AllChatCodes; SwitchLanguageCommand = new TataruUICommand(ChangeUILanguageCommand); AddNewChatWindowCommand = new TataruUICommand(AddNewChatWindow); DeleteChatWindowCommand = new TataruUICommand(DeleteChatWindow); ShowChatWindowCommand = new TataruUICommand(ShowChatWindow); ShutDownRequestedCommand = new TataruUICommand(ShutDownRequsted); this.PropertyChanged += OnSelectedTabChanged; }