public void AddComponent(Component c) { c.Location = new System.Drawing.Point(0, 0); c.Name = "ABC"; c.Size = new System.Drawing.Size(100, 100); c.TabIndex = 10; c.SetD(this); ComponentsList.Add(c); this.Controls.Add(c); GC.Collect(); }
public void AddTo(ComponentsList components) { components.Add(_name, _description, _factory); }
public void AddTo(ComponentsList components) { components.Add("Filesystem", "Performs various filesystem operations", this); }