public void SetAggregateDirectories([InjectGroup] Group group, [InjectSource] DirectoryInfo directory, string name) { var list = group.GetOrCreateValue(name, new List <DirectoryInfo>()); list.Add(directory); }
public IReadOnlyList <DirectoryInfo> AggregateDirectories([InjectGroup] Group group, string name) { return(group.GetValue <IReadOnlyList <DirectoryInfo> >(name)); }
public IReadOnlyList <ExtendedFileInfo> AggregateFiles([InjectGroup] Group group, string name) { return(group.GetValue <IReadOnlyList <ExtendedFileInfo> >(name)); }
public void SetAggregateFiles([InjectGroup] Group group, [InjectSource] ExtendedFileInfo file, string name) { var list = group.GetOrCreateValue(name, new List <ExtendedFileInfo>()); list.Add(file); }
public void SetStDev([InjectGroup] Group group, string name, long?value, int parent = 0) => SetStDev(group, name, (decimal?)value, parent);
public void SetSumIncome([InjectGroup] Group group, string name, long?number, int parent = 0) => SetSumIncome(group, name, (decimal?)number, parent);
public decimal SumIncome([InjectGroup] Group group, string name, int parent) { var parentGroup = GetParentGroup(group, parent); return(parentGroup.GetRawValue <decimal>(name)); }
public decimal SumIncome([InjectGroup] Group group, string name) => SumIncome(group, name, 0);