- 매수 기능 추가

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

@@ -18,6 +18,7 @@ namespace NewsCrawler
private void ConfigForm_Load(object sender, EventArgs e)
{
tbVolume.Text = Config.GetManualPrice().ToString();
tbBuyPrice.Text = Config.GetBuyPrice().ToString();
}
private void OpenFile(string strName)
@@ -109,5 +110,19 @@ namespace NewsCrawler
m_Listener.ApplySynonym();
}
#endregion
#region Buy
private void tbBuyPrice_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar);
}
private void tbBuyPrice_TextChanged(object sender, EventArgs e)
{
int iPrice;
bool bNumber = int.TryParse(tbBuyPrice.Text, out iPrice);
Config.SetBuyPrice(iPrice);
}
#endregion
}
}