// private void exitDebug() { DebugCommandStatus = EnumRunStatus.Stop; btStop.Enabled = false; _stopping = true; setButtonImages(); for (int i = 0; i < tabControl1.TabPages.Count; i++) { for (int j = 0; j < tabControl1.TabPages[i].Controls.Count; j++) { UserControlDebugger c = tabControl1.TabPages[i].Controls[j] as UserControlDebugger; if (c != null) { c.Stop(); } } } if (_prj.ProjectType == EnumProjectType.Kiosk) { LKiosk.Exitkiosk(); } tmStop.Enabled = true; }