Beispiel #1
0
        private void hjdFe35Eu0([In] TreeNode obj0, [In] ArrayList obj1)
        {
            InstrumentNode instrumentNode = obj0 as InstrumentNode;

            if (instrumentNode == null)
            {
                foreach (TreeNode treeNode in obj0.Nodes)
                {
                    this.hjdFe35Eu0(treeNode, obj1);
                }
            }
            else
            {
                if (!instrumentNode.Checked)
                {
                    return;
                }
                obj1.Add((object)instrumentNode.Instrument.Symbol);
            }
        }
Beispiel #2
0
        private void QqXFhomtYZ([In] TreeNode obj0, [In] string[] obj1)
        {
            InstrumentNode instrumentNode = obj0 as InstrumentNode;

            if (instrumentNode == null)
            {
                foreach (TreeNode treeNode in obj0.Nodes)
                {
                    this.QqXFhomtYZ(treeNode, obj1);
                }
            }
            else
            {
                foreach (string str in obj1)
                {
                    if (instrumentNode.Instrument.Symbol == str)
                    {
                        instrumentNode.Checked = true;
                        break;
                    }
                }
            }
        }
Beispiel #3
0
 public bool AddNode(string key, int hitCount, string pIdex, params object[] objs)
 {
     if (!_isLock && !_lock.TryEnter())
     {
         return(false);
     }
     try
     {
         var count = 1;
         if (objs != null && objs.Length > 0)
         {
             count = int.Parse(objs[0].ToString());
         }
         if (!_dic.ContainsKey(key))
         {
             if (_dic.Count < SettingCache.LuceneDictCount)
             {
                 InstrumentNode node = new InstrumentNode();
                 node.Key          = key;
                 node.LastHitCount = hitCount;
                 node.SearchCount  = count;
                 node.PIndex       = pIdex;
                 _dic[node.Key]    = node;
             }
         }
         else
         {
             _dic[key].LastHitCount = hitCount;
             _dic[key].SearchCount += count;
         }
         return(true);
     }
     finally
     {
         _lock.Exit();
     }
 }