internal decimal GetAmount() { int sign = 1; TransactionViewColumn col = view.GetColumn("Deposit"); string s = col.GetValue(item); if (string.IsNullOrEmpty(s)) { sign = -1; col = view.GetColumn("Payment"); s = col.GetValue(item); } decimal p = 0; decimal.TryParse(s, out p); return(p * sign); }
private decimal GetDecimalColumn(string name) { TransactionViewColumn col = view.GetColumn(name); string s = col.GetValue(item); decimal d; decimal.TryParse(s, out d); return(d); }
internal string GetSecurity() { TransactionViewColumn col = view.GetColumn("Security"); return(col.GetValue(item)); }
internal string GetMemo() { TransactionViewColumn col = view.GetColumn("Memo"); return(col.GetValue(item)); }
internal string GetCategory() { TransactionViewColumn col = view.GetColumn("Category"); return(col.GetValue(item)); }
internal string GetPayee() { TransactionViewColumn col = view.GetColumn("Payee"); return(col.GetValue(item)); }
internal string GetCheckNumber() { TransactionViewColumn col = view.GetColumn("Number"); return(col.GetValue(item)); }