private void Button_Click(object sender, RoutedEventArgs e) { int breakpoint = ActiveWatch.breakpointNumber; m_breakpointToWatchMap.Remove(breakpoint); m_watches.Remove(ActiveWatch); BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher(); bpd.removeBreakpoint(breakpoint); DataContext = null; DataContext = this; }
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); } }