small things
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user