void flashInterface_BreakpointEvent(object sender) { Location loc = FlashInterface.getCurrentLocation(); if (PluginMain.breakPointManager.ShouldBreak(loc.File, loc.Line) || File.Exists(loc.File.FullPath)) { UpdateUI(DebuggerState.BreakHalt); } else { FlashInterface.StepResume(); } }
void UpdateUI(DebuggerState state) { if ((PluginBase.MainForm as Form).InvokeRequired) { (PluginBase.MainForm as Form).BeginInvoke((MethodInvoker) delegate() { UpdateUI(state); }); return; } CurrentLocation = FlashInterface.getCurrentLocation(); UpdateStackUI(); UpdateLocalsUI(); UpdateMenuState(state); (PluginBase.MainForm as Form).Activate(); }