Example #1
0
        private MouseListener GetMouseListener()
        {
            var target = m_MouseListenerCache;

            if (target != null)
            {
                return(target);
            }
            target = CreateMouseListener();
            m_MouseListenerCache = target;
            return(target);
        }
Example #2
0
 private MouseListener GetMouseListener()
 {
     var target = m_MouseListenerCache;
     if (target != null) return target;
     target = CreateMouseListener();
     m_MouseListenerCache = target;
     return target;
 }