/// <summary> /// The child form will be captured when it gets loaded /// </summary> /// <param name="e">OnLoad event args</param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); ////Add to the collection only if the calling form is a MDI child form if (this.IsMdiContainer == false && this.MdiParent != null) { ChildCollection.Add(this.formID.ToString()); ChildNames.Add(this.CurrentFormName); this.IntimateParent(true); } }
private void Add(ReorderableList list) { ChildNames.Add("New"); }
public void AddChildDiscs(IEnumerable <Disc> discs) { ChildDiscs = ChildNames.Select(x => discs.First(y => y.Name == x)).ToList(); ChildDiscs.ForEach(x => x.Parent = this); }
public void LinkChildren(List <Plate> list) { Children = ChildNames.Select(cName => list.First(x => x.Name == cName)).ToList(); Children.ForEach(x => x.Parent = this); }