private List <CtlAnswer.Item4Show> GetInputSugestion(string input) { string dbAccount = AccountHelper.GetPubDbAccount(_desk.Seller); var promptlist = CiteTableManagerV2.GetInputSugestion(input, dbAccount, null, Params.BottomPannelAnswerCount); return(promptlist); }
private void Edit() { var ctv = this.GetShowingTreeview(null); if (this.CanEdit(ctv)) { ctv.EditAsync((node) => { LoadDatas(ctv, node.EntityId); CiteTableManagerV2.AddOrUpdateShortcutToInputPromptWordCite(node as ShortcutEntity); }); } }
public void Save(string seller) { var sourceType = GetInputSuggestionSourceType(); if (sourceType != _ori) { Params.InputSuggestion.SourceType = GetInputSuggestionSourceType(); CiteTableManagerV2.ReInitCiteTables(); } bool?isChecked = cboxUseDownKey.IsChecked; Params.InputSuggestion.IsUseDownKey = cboxUseDownKey.IsChecked.HasValue && cboxUseDownKey.IsChecked.Value; if (Params.InputSuggestion.IsUseDownKey != _oriIsUseDowKey) { HotKeyHelper.RegisterDownKey(); } }
public static void ReadDataFromDb(string sellerName) { CiteTableManagerV2.InitCiteTables(TbNickHelper.ConvertNickToPubDbAccount(sellerName)); CiteTableManagerV2.InitCiteTables(TbNickHelper.ConvertNickToPrvDbAccount(sellerName)); }