Guest User

Untitled

a guest
Jan 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. double amt = 0;
  2. foreach (Control c in panel1.Controls)
  3. {
  4. amt = amt + long.Parse(((MediRow)c).Controls.Find("textBox1",true)[0].Text);
  5. }
  6. lblAmt.Text = amt.ToString();
  7.  
  8. class MyCustomItem
  9. {
  10.  
  11. public string ItemName
  12. {
  13. get { return TxtName.Text; }
  14. }
  15.  
  16. public string ItemQuantity
  17. {
  18. get { return TxtQuantity.Text; }
  19. }
  20.  
  21.  
  22. // other logic here
  23. }
Add Comment
Please, Sign In to add comment