- 매수 기능 추가

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

View File

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