small things

This commit is contained in:
2021-03-03 23:47:29 +01:00
parent 234cdbf9e8
commit 3959943607
7 changed files with 10 additions and 10 deletions

View File

@ -76,6 +76,11 @@ namespace StockInfo
CalcNumberAndValue();
}
private void txtSoldAmount_TextChanged(object sender, EventArgs e)
{
CalcNumberAndValue();
}
private void CalcNumberAndValue()
{
if (txtSoldPrice.Text.IsNumeric() && txtSoldAmount.Text.IsNumeric())
@ -84,10 +89,5 @@ namespace StockInfo
txtRemainingNo.Text = stkMemSelected.ActAmount > 0 ? (stkMemSelected.PostAmount - long.Parse(txtSoldAmount.Text)).ToString() : 0.ToString();
}
}
private void txtSoldAmount_TextChanged(object sender, EventArgs e)
{
CalcNumberAndValue();
}
}
}