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); } }
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); }