/// <summary> /// Creates a ComponentFinder that will find Components on a specific Form according to their name. /// </summary> /// <param name="name">The name of the Component to find.</param> /// <param name="form">The form to search for the Component.</param> public ComponentFinder(string name, Form form) { this.name = name; if (form != null) { forms = new FormCollection(); forms.Add(form); } }
/// <summary> /// Creates a ComponentFinder that will find Components on a specific Form according to their name. /// </summary> /// <param name="name">The name of the Component to find.</param> /// <param name="form">The form to search for the Component.</param> public ComponentFinder(string name, Form form) { this.name = name; if(form != null) { forms = new FormCollection(); forms.Add(form); } }