-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathErrorReporter.cpp
More file actions
29 lines (29 loc) · 1.05 KB
/
ErrorReporter.cpp
File metadata and controls
29 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//---------------------------------------------------------------------------
#include "agdv.pch.h"
#include "ErrorReporter.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
ErrorReporter s_ErrorReporter;
ErrorReporter& g_ErrorReporter = s_ErrorReporter;
//---------------------------------------------------------------------------
__fastcall ErrorReporter::ErrorReporter()
{
}
//---------------------------------------------------------------------------
void __fastcall ErrorReporter::Clear()
{
m_Memo->Lines->Clear();
m_Memo->Parent->Visible = false;
}
//---------------------------------------------------------------------------
void __fastcall ErrorReporter::Add(const String& message)
{
if (message != m_LastMessage)
{
m_Memo->Lines->Add(message);
m_Memo->Parent->Visible = true;
m_LastMessage = message;
}
}
//---------------------------------------------------------------------------