Пример #1
0
 /// <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);
     }
 }
Пример #2
0
		/// <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);
			}
		}