Beispiel #1
0
        OPOSKeyEventArgs Dequeue()
        {
            SizeQueue <OPOSKeyEventArgs> keys = null;

            if (containerKeys.ContainsKey(ActiveContainer))
            {
                keys = containerKeys[ActiveContainer];
                return(keys.Dequeue());
            }
            else
            {
                return(null);
            }
        }
Beispiel #2
0
        void Enqueue(OPOSKeyEventArgs e)
        {
            if (string.IsNullOrEmpty(ActiveContainer))
            {
                return;
            }

            SizeQueue <OPOSKeyEventArgs> keys = null;

            if (containerKeys.ContainsKey(ActiveContainer))
            {
                keys = containerKeys[ActiveContainer];
            }
            else
            {
                keys = new SizeQueue <OPOSKeyEventArgs>(20);
                containerKeys[ActiveContainer] = keys;
            }

            keys.Enqueue(e);
        }