1protected void OnTextBoxChanged(object sender, EventArgs e)
2 {
3 TextBox updatedControl = (TextBox) sender;
4 string examID = ((TableRow)updatedControl.Parent.Parent).Cells[ID_COLUMN].Text;
5
6 Dictionary<string, string> valuesToAdd = new Dictionary<string, string>();
7 valuesToAdd.Add(examID, updatedControl.Text);
8
9 if (Convert.ToInt32(updatedControl.Text) == 0)
10 {
11 //TODO: Presenter.RemoveQtyFromBillingSheetDetailCollection();
12 }
13 else
14 {
15 Presenter.AddQtyToBillingSheetDetailCollection(valuesToAdd);
16 }
17 }