Beispiel #1
0
        public AddUserForm()
        {
            InitializeComponent();
            string fileName = "LookUpCountryValues.xml";

            AccessControlList.ReadLookupCountryValues(this.cityCombo, fileName);
            AccessControlList.ReadLookupCountryValues(this.stateCombo, fileName);
            this.birthday.MaxDate = DateTime.Now;
            foreach (Organization organization in UserAdminUtilities.UserAdminUtility.organizations)
            {
                organizationCombobox.Items.Add(organization.OrgName);
            }
            foreach (UserAdmin.Objects.Group group in UserAdminUtilities.UserAdminUtility.groups)
            {
                groupCombobox.Items.Add(group.GroupId);
            }
            reset();
        }
Beispiel #2
0
        public AddOrganization(bool isedit, string orgid)
        {
            InitializeComponent();
            string fileName = "LookUpCountryValues.xml";

            AccessControlList.ReadLookupCountryValues(this.countryCombo, fileName);
            AccessControlList.ReadLookupCountryValues(this.regionCombo, fileName);
            this.isedit = isedit;
            if (isedit && orgid != null)
            {
                RestoreOrganizationSettings(orgid);
                orgEditId       = orgid;
                orgName.Enabled = false;
            }
            else
            {
                orgName.Enabled = true;
            }
        }