- 매수 기능 추가
This commit is contained in:
12
Util.cs
12
Util.cs
@@ -45,9 +45,9 @@ namespace NewsCrawler
|
||||
|
||||
bool bInvoke = mainForm != null ? mainForm.InvokeRequired || LogBox.InvokeRequired : LogBox.InvokeRequired;
|
||||
|
||||
if(bInvoke)
|
||||
if(LogBox.InvokeRequired)
|
||||
{
|
||||
mainForm.Invoke(new InsertLogDelegate(InsertLog), LogBox, enType, strLog);
|
||||
LogBox.Invoke(new InsertLogDelegate(InsertLog), LogBox, enType, strLog);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -104,11 +104,13 @@ namespace NewsCrawler
|
||||
|
||||
string strLogLevel = "["+enType+"] ";
|
||||
string strTime = DateTime.Now.ToString("[hh:mm:ss] ");
|
||||
string strMessage = strTime+strLogLevel+strLog+Environment.NewLine;
|
||||
string strMessage = strTime+strLogLevel+strLog;
|
||||
|
||||
File.AppendAllText(m_strLogFile, strMessage, new UTF8Encoding(true));
|
||||
File.AppendAllText(m_strLogFile, strMessage+Environment.NewLine, new UTF8Encoding(true));
|
||||
if(m_LogBox != null)
|
||||
InsertLog(m_LogBox, enType, strMessage);
|
||||
InsertLog(m_LogBox, enType, strMessage+Environment.NewLine);
|
||||
|
||||
Console.WriteLine(strMessage);
|
||||
}
|
||||
|
||||
public static bool IsDebugging()
|
||||
|
||||
Reference in New Issue
Block a user