public void CheckResource( UsernameEnumeratorSetting setting )
		{
			if( String.IsNullOrEmpty( _baseUrl ) )
			{
				return;
			}

			this._setting = setting;
			ResponseDetails = new List< ResponseDetails >();

			WebMethod = this._setting.Method;
			UserNameKey = this._setting.UserNameKey;
			_cookieContainer = new CookieContainer();
			this.PerformRequest();
		}
        public void CheckResource(UsernameEnumeratorSetting setting)
        {
            if (String.IsNullOrEmpty(_baseUrl))
            {
                return;
            }

            this._setting   = setting;
            ResponseDetails = new List <ResponseDetails>();

            WebMethod        = this._setting.Method;
            UserNameKey      = this._setting.UserNameKey;
            _cookieContainer = new CookieContainer();
            this.PerformRequest();
        }
		private void btnStart_Click( object sender, EventArgs e )
		{
			if( this.IsSettingsValid() )
			{

				this.gvResults.DataSource = null;
				this._usernameManager = new UsernameEnumeratorManager( this.GetBaseUrl() );
				this._usernameSetting = new UsernameEnumeratorSetting
					{
						TextToSearch = this.tbTextToSearch.Text,
						Method = this.rbGet.Checked ? this.rbGet.Text : this.rbPost.Text,
						UrlParameters = this.tbParams.Text
					};
				this.GetUserNmaeParameters();
				this.ActivateStatusLabel( true );
				this.DisableControls( this.Controls, false );
				this.bgWorker.RunWorkerAsync();
			}
		}