void OutputCtrl::Clear() { SetReadOnly( false ); ClearAll(); SetReadOnly( true ); m_Selected = -1; ClearErrors(); }
void HandleError() { eraseDisplay(); nxtDisplayCenteredBigTextLine(2, "ERROR");//show selected view number nxtDisplayCenteredTextLine(6, sError); nxtDisplayCenteredTextLine(7, "Press any key"); while(nNxtButtonPressed == -1) wait10Msec(1); ClearErrors(); }
bool CTestSuite::Run(std::set<std::string>& SuitesToRun) { ClearErrors(); if(GetParentSuite()!=NULL && SuitesToRun.size()!=0) { std::string sSuiteName; std::string sSuiteDescription; GetSuiteInfo(sSuiteName, sSuiteDescription); // Check if this suite's name is in list std::set<std::string>::iterator it = SuitesToRun.find(sSuiteName); if(it==SuitesToRun.end()) return true; // This suite is not in list } g_pCurTestSuite = this; BeforeTest("SetUp"); SetUp(); AfterTest("SetUp"); if(m_bTestFailed) m_bSuiteSetUpFailed = true; std::vector<std::string> test_list; DoWithMyTests(RUN_TESTS, test_list); UINT i; for(i=0; i<m_apChildSuites.size(); i++) { m_apChildSuites[i]->Run(SuitesToRun); } int nErrors = (int)m_asErrorMsg.size(); g_pCurTestSuite = this; if(BeforeTest("TearDown")) TearDown(); AfterTest("TearDown"); if(nErrors!=(int)m_asErrorMsg.size()) return false; // TearDown has failed g_pCurTestSuite = NULL; return m_asErrorMsg.size()==0?true:false; }
void CourseCreator::OnSubmitCourse(wxCommandEvent&){ ClearErrors(); //Clear the errors of the previous creation attempt if(course_name->GetValue() == "") DisplayError(ERROR_NO_NAME); //No course name was specified if(ects->GetValue() == "") DisplayError(ERROR_NO_ECTS); //No ects amount specified if(course_number->GetValue() == "") DisplayError(ERROR_NO_NUMBER); if(errors.size() == 0) EndModal(wxID_OK); for(unsigned int i = 0; i < errors.size(); i++) errors[i]->SetForegroundColour(wxColour(wxT("RED"))); }//OnSubmitCourse
void CEScriptDocument::TextChanged() { ClearErrors(); CComQIPtr<IActiveScriptParse> scriptParse = m_activeScript; if (scriptParse) { HRESULT hr; hr = m_activeScript->SetScriptState(SCRIPTSTATE_INITIALIZED); if (SUCCEEDED(hr)) { BSTR text; m_textData->get_data(&text); EXCEPINFO excepinfo; hr = scriptParse->ParseScriptText( text, NULL, NULL, NULL, 0, 0, 0, // Flags NULL, &excepinfo); //m_activeScript->Close(); } else ATLASSERT(0); } Fire_doneParsingDOM(); }
CourseCreator::~CourseCreator(){ ClearErrors(); }//~CourseCreator
CLog::~CLog(void) { ClearErrors(); ClearWarnings(); }