Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public OrganizationServiceProxy CreateOrganization()
- {
- ClientCredentials cred1 = new ClientCredentials();
- cred1.UserName.UserName = _userName;
- cred1.UserName.Password = _password;
- ClientCredentials cred2 = new ClientCredentials();
- cred2.UserName.UserName = _deviceId;
- cred2.UserName.Password = _devicePass;
- OrganizationServiceProxy obj;
- if (_deviceId.Length > 0)
- obj = new OrganizationServiceProxy(
- new Uri(organizationUri),
- null,
- cred1,
- cred2);
- else
- obj = new OrganizationServiceProxy(
- new Uri(organizationUri),
- null,
- cred1,
- null);
- obj.EnableProxyTypes();
- return obj;
- }
- }
- }
- Limpiar();
- }
- private void Limpiar()
- {
- txtRut.Text = "";
- txtNombreCompleto.Text = "";
- txtTelefono.Text = "";
- txtCorreo.Text = "";
- }
Add Comment
Please, Sign In to add comment