public UserControlAuthenticationTester()
 {
     InitializeComponent();
     AuthForm = new AuthenticationForm();
     AuthenticationForms = new List<AuthenticationForm>();
     authTester = new AuthenticationTester();
     LoadTestFiles();
     AwaitingFinish = false;
     LastCombinationIndex = 0;
 }
 public AuthenticationTester()
 {
     url = string.Empty;
     usernames = new List<string>();
     passwords = new List<string>();
     successFilter = new Filter();
     authentication = AuthenticationMethods.BasicAuth;
     authForm = new AuthenticationForm();
     validCombinations = new List<ValidCombination>();
     finished = false;
     userStopped = false;
     Work = new Queue<CreateWebrequest>();
 }
 public AuthenticationTester()
 {
     url               = string.Empty;
     usernames         = new List <string>();
     passwords         = new List <string>();
     successFilter     = new Filter();
     authentication    = AuthenticationMethods.BasicAuth;
     authForm          = new AuthenticationForm();
     validCombinations = new List <ValidCombination>();
     finished          = false;
     userStopped       = false;
     Work              = new Queue <CreateWebrequest>();
 }
 private void textBoxURL_TextChanged(object sender, EventArgs e)
 {
     AuthenticationForms.Clear();
     AuthForm = new AuthenticationForm();
 }
        private void buttonSelectFields_Click(object sender, EventArgs e)
        {
            if (!VerifyInputSelectField())
                return;

            frmAuthenticationForm authDialog = new frmAuthenticationForm(textBoxURL.Text);
            if (AuthenticationForms.Count > 0)
                authDialog.LoadAuthForms(AuthenticationForms);
            else
                authDialog.LoadOnlineForms();

            if (authDialog.ShowDialog() == DialogResult.OK)
            {
                AuthForm = authDialog.AuthForm;
                AuthenticationForms = authDialog.AuthForms;
            }
        }