Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher();

            if (m_breakpointNumber >= 0)
            {
                Button butt = sender as Button;
                butt.Content = "Trace Reads";
                bpd.removeBreakpoint(m_breakpointNumber);
                m_breakpointNumber = -1;
            }
            else
            {
                Button butt = sender as Button;
                butt.Content = "Stop Trace";
                int end = m_screenAddress + 1000;
                bpd.addWatchPointAndNotifyMe(m_screenAddress, end, new BreakPointDispatcher.BreakPointEventDelegate(hitBreakpoint), this.Dispatcher, true, false, this);
            }
        }
Exemplo n.º 2
0
        private void addButton_Click(object sender, RoutedEventArgs e)
        {
            BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher();

            bpd.addWatchPointAndNotifyMe(ActiveWatch.m_address, ActiveWatch.m_address, new BreakPointDispatcher.BreakPointEventDelegate(hitBreakpoint), this.Dispatcher, false, true, this);
        }