public void AddNewChatWindow(ChatWindowViewModelSettings settings)
        {
            if (ChatWindows.Count >= 10)
            {
                return;
            }

            ChatWindowViewModel cwm = null;

            var trEng = TranslationEngines;

            UiWindow.Window.UIThread(() =>
            {
                cwm = new ChatWindowViewModel(settings, trEng.ToList(), _AllChatCodes.ToList(), _TataruModel.HotKeyManager);


                try
                {
                    ChatWindows.Add(cwm);
                }
                catch (Exception e)
                {
                    Logger.WriteLog(e);
                }

                SelectedTabIndex = ChatWindows.Count - 1;
            });
        }
        public void AddNewChatWindow()
        {
            UiWindow.Window.UIThread(() =>
            {
                if (ChatWindows.Count >= 10)
                {
                    return;
                }

                long winId = 0;
                if (ChatWindows.Count > 0)
                {
                    winId = ChatWindows[ChatWindows.Count - 1].WinId + 1;
                }

                ChatWindowViewModelSettings cws = null;
                ChatWindowViewModel cwm         = null;


                var trEng = TranslationEngines;
                cws       = new ChatWindowViewModelSettings((winId + 1).ToString(), winId);
                cwm       = new ChatWindowViewModel(cws, trEng.ToList(), _AllChatCodes.ToList(), _TataruModel.HotKeyManager);


                ChatWindows.Add(cwm);


                SelectedTabIndex = ChatWindows.Count - 1;
            });
        }