private void toolStripButtonAuthType_Click(object sender, EventArgs e)
        {
            frmAuthentication frmAuth = new frmAuthentication();

            if (frmAuth.ShowDialog() == DialogResult.OK)
            {
                this.netCred.UserName = frmAuth.textBoxUsername.Text;
                this.netCred.Password = frmAuth.textBoxPassword.Text;
                if (!(frmAuth.textBoxDomain.Text == string.Empty))
                {
                    this.netCred.Domain = frmAuth.textBoxDomain.Text;
                }
            }
        }
 private void toolStripButtonAuthType_Click(object sender, EventArgs e)
 {
     frmAuthentication frmAuth = new frmAuthentication();
     if (frmAuth.ShowDialog() == DialogResult.OK)
     {
         this.netCred.UserName = frmAuth.textBoxUsername.Text;
         this.netCred.Password = frmAuth.textBoxPassword.Text;
         if (!(frmAuth.textBoxDomain.Text == string.Empty))
             this.netCred.Domain = frmAuth.textBoxDomain.Text;
     }
 }