Ejemplo n.º 1
0
        /// <summary>
        /// Event Handler for Reset Passphrase Load
        /// </summary>
        private void OnResetPassphraseLoad(object o, EventArgs args)
        {
            DomainController domainController = DomainController.GetDomainController();

            domains = domainController.GetLoggedInDomains();
            if (domains == null)
            {
                this.Respond(ResponseType.DeleteEvent);
                return;
            }
            string defaultDomainID = simws.GetDefaultDomainID();
            int    defaultDomain   = 0;

            for (int x = 0; x < domains.Length; x++)
            {
                domainComboBox.AppendText(domains[x].Name + "-" + domains[x].Host);
                if (defaultDomainID != null && defaultDomainID == domains[x].ID)
                {
                    defaultDomain = x;
                }
            }
            if (domains.Length > 0)
            {
                domainComboBox.Active = defaultDomain;
            }
            DisplayRAList();
            UpdateUI();
        }
Ejemplo n.º 2
0
        private void OnResetPasswordLoad(object o, EventArgs args)
        {
            DomainController domainController = DomainController.GetDomainController();

            domains = domainController.GetLoggedInDomains();
            if (domains == null)
            {
                this.Respond(ResponseType.DeleteEvent);
                return;
            }
            string defaultDomainID = simws.GetDefaultDomainID();
            int    defaultDomain   = 0;

            for (int x = 0; x < domains.Length; x++)
            {
                domainComboBox.AppendText(domains[x].Name + "-" + domains[x].Host);
                if (defaultDomainID != null && defaultDomainID == domains[x].ID)
                {
                    defaultDomain = x;
                }
            }
            if (domains.Length > 0)
            {
                domainComboBox.Active = defaultDomain;
            }
            oldPassword.Sensitive = newPassword.Sensitive = confirmPassword.Sensitive = savePassword.Sensitive = true;
        }