public BundleInstanceModel(BundleInstanceModel parent, int count, BundleModel bundle) { ParentInstance = parent; Count = count; Bundle = bundle; Name = string.Empty; }
internal void PopulateInstances(BundleInstanceModel parent) { var instances = new List <BundleInstanceModel>(); for (var i = 0; i < Size; i++) { var instance = CreateInstanceFrom(Bundle, i); Bundle.Instance = instance; var instanceName = CreateNameFrom(Bundle, i); Bundle.Instance.Name = instanceName; instances.Add(instance); } Instances = instances; foreach (var bucket in Bundle.Buckets) { bucket.PopulateInstances(Bundle.Instance); } }