public int generateTotal(int total) { int subtotal=0; subtotal = subtotal + total; string dtotal = subtotal.ToString(); lblTotal.Text = dtotal; return total; } public int geti1(int i){ int j = 0; int tot = j + i; generateTotal(tot); return tot; } public int geti2(int i) { int j = 0; int tot = j + i; generateTotal(tot); return tot; } public int geti3(int i) { int j = 0; int tot = j + i; generateTotal(tot); return tot; } public int geti4(int i) { int j = 0; int tot = j + i; generateTotal(tot); return tot; } public int geti5(int i) { int j = 0; int tot = j + i; generateTotal(tot); return tot; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)