Ejemplo n.º 1
0
        public PayPattern(IPaymentInterval interval, MonthEnum startsInMonth)
            : base()
        {
            Interval      = new SaveableXmlElement <IPaymentInterval>(interval);
            StartsInMonth = startsInMonth;

            UpdateAffectedMonths();
        }
Ejemplo n.º 2
0
 public Month() : base()
 {
     Year          = new SaveableXmlElement <IYear>();
     MonthType     = (MonthEnum)DateTime.Now.Month;
     AlignedMonths = new AlignedMonths(this);
     Transactions  = new ElementCollection <ITransaction>();
     Name          = MonthType.ConvertToText();
     Types         = new CategoryTypeCollection();
 }
Ejemplo n.º 3
0
        public Payment(string name, ICategory category, double amount, IPayPattern payPattern, ICategory subCategory)
            : base()
        {
            Name = name;

            Category    = new SaveableXmlElement <ICategory>(category);
            SubCategory = new SaveableXmlElement <ICategory>(subCategory);
            PayPattern  = new SaveableXmlElement <IPayPattern>(payPattern);

            Amount = amount;
        }
Ejemplo n.º 4
0
        public Payment(ICategory category, IPayPattern pattern)
            : base()
        {
            Category = new SaveableXmlElement <ICategory>()
            {
                Element = category
            };
            SubCategory = new SaveableXmlElement <ICategory>();
            PayPattern  = new SaveableXmlElement <IPayPattern>(pattern);

            Amount = 0.0;
        }
Ejemplo n.º 5
0
 public Transaction()
     : base()
 {
     Month   = new SaveableXmlElement <IMonth>();
     Payment = new SaveableXmlElement <IPayment>();
 }