코드 수정
This commit is contained in:
21
Util.cs
21
Util.cs
@@ -16,9 +16,11 @@ namespace AutoSellerNS
|
||||
{
|
||||
DEBUG,
|
||||
ERROR,
|
||||
VERVOSE,
|
||||
VERBOSE,
|
||||
BUY,
|
||||
BUY_CONCLUSION,
|
||||
SELL,
|
||||
SELL_CONCLUSION,
|
||||
}
|
||||
static string m_strLogFile = null;
|
||||
static RichTextBox m_LogBox = null;
|
||||
@@ -42,6 +44,7 @@ namespace AutoSellerNS
|
||||
|
||||
Action update = delegate {
|
||||
Color LogColor;
|
||||
Color LogBackColor = LogBox.BackColor;
|
||||
switch (enType)
|
||||
{
|
||||
case LOG_TYPE.DEBUG:
|
||||
@@ -50,14 +53,22 @@ namespace AutoSellerNS
|
||||
case LOG_TYPE.ERROR:
|
||||
LogColor = Color.DarkRed;
|
||||
break;
|
||||
case LOG_TYPE.VERVOSE:
|
||||
case LOG_TYPE.VERBOSE:
|
||||
LogColor = Color.Black;
|
||||
break;
|
||||
case LOG_TYPE.SELL:
|
||||
LogColor = Color.Blue;
|
||||
LogColor = Color.FromArgb(0, 104, 232);
|
||||
break;
|
||||
case LOG_TYPE.SELL_CONCLUSION:
|
||||
LogColor = Color.Black;
|
||||
LogBackColor = Color.FromArgb(127, 179, 243);
|
||||
break;
|
||||
case LOG_TYPE.BUY:
|
||||
LogColor = Color.Red;
|
||||
LogColor = Color.FromArgb(244, 45, 45);
|
||||
break;
|
||||
case LOG_TYPE.BUY_CONCLUSION:
|
||||
LogColor = Color.Black;
|
||||
LogBackColor = Color.FromArgb(249, 150, 150);
|
||||
break;
|
||||
default:
|
||||
LogColor = Color.Black;
|
||||
@@ -67,10 +78,12 @@ namespace AutoSellerNS
|
||||
LogBox.SelectionStart = LogBox.TextLength;
|
||||
LogBox.SelectionLength = 0;
|
||||
LogBox.SelectionColor = LogColor;
|
||||
LogBox.SelectionBackColor = LogBackColor;
|
||||
|
||||
LogBox.AppendText(strLog);
|
||||
|
||||
LogBox.SelectionColor = LogBox.ForeColor;
|
||||
LogBox.SelectionBackColor = LogBox.BackColor;
|
||||
|
||||
LogBox.SelectionStart = LogBox.TextLength;
|
||||
LogBox.ScrollToCaret();
|
||||
|
||||
Reference in New Issue
Block a user