Esempio n. 1
0
        void AddExecuteDefaultAction(EventBase evt, PropagationPhase phase, long duration, IEventHandler mouseCapture)
        {
            if (m_Log)
            {
                var defaultActionObject = new EventDebuggerDefaultActionTrace(panel, evt, phase, duration, mouseCapture);
                List <EventDebuggerDefaultActionTrace> list;

                if (m_EventDefaultActionObjects.ContainsKey(panel))
                {
                    list = m_EventDefaultActionObjects[panel];
                }
                else
                {
                    list = new List <EventDebuggerDefaultActionTrace>();
                    m_EventDefaultActionObjects.Add(panel, list);
                }
                list.Add(defaultActionObject);
            }
        }
Esempio n. 2
0
        void AddExecuteDefaultAction(EventBase evt, PropagationPhase phase, long duration, IEventHandler mouseCapture)
        {
            if (suspended)
            {
                return;
            }

            if (m_Log)
            {
                var defaultActionObject = new EventDebuggerDefaultActionTrace(panel, evt, phase, duration, mouseCapture);

                if (!m_EventDefaultActionObjects.TryGetValue(panel, out var list))
                {
                    list = new List <EventDebuggerDefaultActionTrace>();
                    m_EventDefaultActionObjects.Add(panel, list);
                }

                list.Add(defaultActionObject);
            }
        }
Esempio n. 3
0
        private void AddExecuteDefaultAction(EventBase evt, PropagationPhase phase, long duration, IEventHandler mouseCapture)
        {
            bool log = this.m_Log;

            if (log)
            {
                EventDebuggerDefaultActionTrace item = new EventDebuggerDefaultActionTrace(this.panel, evt, phase, duration, mouseCapture);
                bool flag = this.m_EventDefaultActionObjects.ContainsKey(this.panel);
                List <EventDebuggerDefaultActionTrace> list;
                if (flag)
                {
                    list = this.m_EventDefaultActionObjects[this.panel];
                }
                else
                {
                    list = new List <EventDebuggerDefaultActionTrace>();
                    this.m_EventDefaultActionObjects.Add(this.panel, list);
                }
                list.Add(item);
            }
        }