- 매수 기능 추가

This commit is contained in:
2016-12-09 09:51:00 +09:00
parent 958f523b9c
commit 034c061a1b
12 changed files with 482 additions and 20 deletions

12
Util.cs
View File

@@ -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()