Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     lblResult.Text = string.Empty;
     try
     {
         adADWrapper           = new ADWrapper(txtPath3.Text, txtLoginName.Text, txtPassword.Text);
         lstDomains.DataSource = adADWrapper.Domain_GetList1();
         label4.Text           = adADWrapper.LDAPPath;
     }
     catch (Exception ex)
     {
         lblResult.Text = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
     }
 }
Esempio n. 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     lblResult.Text = string.Empty;
     try
     {
         //ImpersonateLogin wImpersonation = new ImpersonateLogin();
         //wImpersonation.domain = txtDomainName.Text;
         //wImpersonation.user= txtLoginName.Text;
         //wImpersonation.password= txtPassword.Text;
         adADWrapper = new ADWrapper(txtPath2.Text, txtLoginName.Text, txtPassword.Text);
         //adADWrapper.LDAPDomainName = txtDomainName.Text;
         lstDomains.DataSource = adADWrapper.Domain_GetList1();
         label4.Text           = adADWrapper.LDAPPath;
     }
     catch (Exception ex)
     {
         lblResult.Text = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
     }
 }