コード例 #1
0
        private List <CtlAnswer.Item4Show> GetInputSugestion(string input)
        {
            string dbAccount  = AccountHelper.GetPubDbAccount(_desk.Seller);
            var    promptlist = CiteTableManagerV2.GetInputSugestion(input, dbAccount, null, Params.BottomPannelAnswerCount);

            return(promptlist);
        }
コード例 #2
0
        private void Edit()
        {
            var ctv = this.GetShowingTreeview(null);

            if (this.CanEdit(ctv))
            {
                ctv.EditAsync((node) =>
                {
                    LoadDatas(ctv, node.EntityId);
                    CiteTableManagerV2.AddOrUpdateShortcutToInputPromptWordCite(node as ShortcutEntity);
                });
            }
        }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
 public static void ReadDataFromDb(string sellerName)
 {
     CiteTableManagerV2.InitCiteTables(TbNickHelper.ConvertNickToPubDbAccount(sellerName));
     CiteTableManagerV2.InitCiteTables(TbNickHelper.ConvertNickToPrvDbAccount(sellerName));
 }