Exemplo n.º 1
0
        public override void ConnectElements(IProject project)
        {
            base.ConnectElements(project);
            Transactions.ConnectIds(project.Transactions);
            Year.Element = (IYear)project.Years.GetElementById(Year.Id);

            AlignedMonths = new AlignedMonths(this);
        }
Exemplo 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();
 }