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); }
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(); }