- 매수 기능 추가
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user