Пример #1
0
 private Transaction GetTranaction(CSVEntry entry)
 {
     if (StandardTransaction.IsStandardTransaction(entry))
     {
         return(new StandardTransaction());
     }
     else if (SplitTransaction.IsSplitHeader(entry))
     {
         return(new SplitTransaction());
     }
     else if (SplitTransaction.IsSplitSubEntry(entry))
     {
         throw new ApplicationException();
     }
     else
     {
         throw new ApplicationException();
     }
 }
Пример #2
0
 public static bool IsStandardTransaction(CSVEntry entry)
 {
     return(!SplitTransaction.IsSplitHeader(entry) && !SplitTransaction.IsSplitSubEntry(entry));
 }