- 매수 기능 추가
This commit is contained in:
12
CodeList.cs
12
CodeList.cs
@@ -24,7 +24,7 @@ namespace NewsCrawler
|
||||
|
||||
override public string ToString()
|
||||
{
|
||||
return string.Format("{0}:{1} ({2})", m_strCode, m_strName, m_enType);
|
||||
return string.Format("{0}:{1}", m_strCode, m_strName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,6 +118,16 @@ namespace NewsCrawler
|
||||
LoadCodeType(strPath, CODE_TYPE.DUPLICATED);
|
||||
}
|
||||
|
||||
public void AddDuplicatedList(string strCode, string strName)
|
||||
{
|
||||
CODE_VALUE Result = m_CodeList.Find(s => s.m_strCode == strCode);
|
||||
if(Result != null)
|
||||
Result.m_enType |= CODE_TYPE.DUPLICATED;
|
||||
|
||||
string strPath = Util.GetConfigPath()+"/code-duplicated.txt";
|
||||
File.AppendAllText(strPath, strName+Environment.NewLine);
|
||||
}
|
||||
|
||||
public void MakeManualList(int iPrice)
|
||||
{
|
||||
m_CodeList.ForEach(a => a.m_enType &= ~CODE_TYPE.MANUAL);
|
||||
|
||||
Reference in New Issue
Block a user