public SalaryCalcRow addc(string pc) { SalaryCalcRow ns = null; if (ValueNr > 0) { ns = Rows[Cursor]; } else { ns = new SalaryCalcRow() { Caption = pc, IsTitle = true }; Rows.Add(ns); } Cursor++; return(ns); }
public SalaryCalcRow addrt(string pc, decimal pv) { SalaryCalcRow ns = null; if (ValueNr > 0) { ns = Rows[Cursor]; ns[ValueNr] = pv; } else { ns = new SalaryCalcRow() { Caption = pc, Value = pv, IsTotals = true }; Rows.Add(ns); } Cursor++; return(ns); }