Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
 private void Add(ReorderableList list)
 {
     ChildNames.Add("New");
 }
Exemplo n.º 3
0
 public void AddChildDiscs(IEnumerable <Disc> discs)
 {
     ChildDiscs = ChildNames.Select(x => discs.First(y => y.Name == x)).ToList();
     ChildDiscs.ForEach(x => x.Parent = this);
 }
Exemplo n.º 4
0
 public void LinkChildren(List <Plate> list)
 {
     Children = ChildNames.Select(cName => list.First(x => x.Name == cName)).ToList();
     Children.ForEach(x => x.Parent = this);
 }