Exemplo n.º 1
0
        private bool CheckEventCatchStatus(FeatureBase fc, string methodName)
        {
            var mas = attrBuf[fc];

            if (mas.TryGetValue(methodName, out var attr))
            {
                if (attr.IsStatusFilter())
                {
                    return(attr.CheckStatus(this));
                }
            }
            return(true);    // when no status, return true to be a check target
        }
Exemplo n.º 2
0
 private void InitKeyboard(FeatureBase _, IKeyListener keylistener)
 {
     foreach (var kls in keylistener.KeyListenSettings)
     {
         foreach (var(key, state) in kls.KeyStates)
         {
             if (_keyliss.TryGetValue(key, out var tarkl) == false)
             {
                 _keyliss[key] = tarkl = new List <IKeyListener>();
             }
             if (tarkl.Contains(keylistener) == false)
             {
                 tarkl.Add(keylistener);
             }
         }
     }
 }
Exemplo n.º 3
0
 internal TokenTray(FeatureBase parent)
 {
     _parent = parent;
 }