public async void LoadFile(IFile f, PackageView owner = null) { if (Loader == null) { return; } var pkgView = await Loader(f); if (owner != null && pkgView != null) { owner.AddChildPackage(pkgView); } }
private void SetParentPackage(PackageView p) { parent = p; }
private void RemoveChildPackage(PackageView p) { this.children.Remove(p); }
/// <summary> /// Add a package as a child of this package. /// This means the given package will be closed if this package is closed. /// </summary> public void AddChildPackage(PackageView p) { this.children.Add(p); p.SetParentPackage(this); }