Example #1
0
        private void SelectOU()
        {
            if (string.IsNullOrEmpty(txtSpace.Text))
            {
                ShowWarning("Please select hosting space first.");
                return;
            }
            OUForm form = new OUForm();

            form.InitializeForm();
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                Global.OrgDirectoryEntry = form.DirectoryEntry;
                string orgId = (string)Global.OrgDirectoryEntry.Properties["name"].Value;
                txtOU.Text            = form.DirectoryEntry.Path;
                Global.OrganizationId = orgId;


                LoadOrganizationData(Global.OrgDirectoryEntry);
            }
        }
Example #2
0
		private void SelectOU()
		{
			if (string.IsNullOrEmpty(txtSpace.Text))
			{
				ShowWarning("Please select hosting space first.");
				return;
			}
			OUForm form = new OUForm();
			form.InitializeForm();
			if (form.ShowDialog(this) == DialogResult.OK)
			{
				Global.OrgDirectoryEntry = form.DirectoryEntry;
				string orgId = (string)Global.OrgDirectoryEntry.Properties["name"].Value;
				txtOU.Text = form.DirectoryEntry.Path;
				Global.OrganizationId = orgId;


				LoadOrganizationData(Global.OrgDirectoryEntry);
			}
		}