Пример #1
0
        private void testPasswordSearchTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.testPasswordSearchTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.testPasswordSearchLabel);
                return;
            }
            LDAPSearchPass = dat;
            PawnStoreSetupForm.CheckmarkLabel(true, this.testPasswordSearchLabel);
            if (PawnLDAPAccessor.Instance.State ==
                PawnLDAPAccessor.LDAPState.CONNECTED &&
                !string.IsNullOrEmpty(this.testPasswordSearchTextBox.Text) &&
                !string.IsNullOrEmpty(this.testSearchUserTextBox.Text))
            {
                this.testSearchButton.Enabled = true;
                //this.addLDAPUserButton.Enabled = true;
            }
            else
            {
                this.testSearchButton.Enabled = false;
                //this.addLDAPUserButton.Enabled = false;
            }
        }
Пример #2
0
        private void databaseTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(databaseTextBox, null, out dat))
            {
                return;
            }
            this.CouchDBDatabase = dat;
            this.TryEnableDoneButton();
        }
Пример #3
0
        private void endPointNameTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.endPointNameTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.endPointNameLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.ENPO;
                return;
            }
            this.tempEsbEndPointName = dat;
            infoFlag |= (uint)REQINFOFLAGS.ENPO;
            PawnStoreSetupForm.CheckmarkLabel(true, this.endPointNameLabel);
            this.addServiceButton.Enabled = true;
        }
Пример #4
0
        private void domainTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.domainTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.domainLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.DOMA;
                return;
            }
            this.tempEsbDomain = dat;
            infoFlag          |= (uint)REQINFOFLAGS.DOMA;
            PawnStoreSetupForm.CheckmarkLabel(true, this.domainLabel);
            this.endPointURITextBox.Enabled = true;
        }
Пример #5
0
        private void hostNameTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.hostNameTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.hostNameLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.HOST;
                return;
            }
            this.tempEsbHost = dat;
            infoFlag        |= (uint)REQINFOFLAGS.HOST;
            PawnStoreSetupForm.CheckmarkLabel(true, this.hostNameLabel);
            this.portTextBox.Enabled = true;
        }
Пример #6
0
        private void userIdKeyTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.userIdKeyTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.userIdKeyLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.USERIDKEY;
                return;
            }
            LDAPUserIdKey = dat;
            infoFlag     |= (uint)REQINFOFLAGS.USERIDKEY;
            PawnStoreSetupForm.CheckmarkLabel(true, this.userIdKeyLabel);
            this.testLDAPCxnButton.Enabled = true;
        }
Пример #7
0
        private void pwdPolicyDNTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.pwdPolicyDNTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.pwdPolicyDNLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.PASSPOLICY;
                return;
            }
            LDAPPassPolicyDN = dat;
            infoFlag        |= (uint)REQINFOFLAGS.PASSPOLICY;
            PawnStoreSetupForm.CheckmarkLabel(true, this.pwdPolicyDNLabel);
            this.userDNTextBox.Enabled = true;
        }
Пример #8
0
        private void ldapLoginTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.ldapLoginTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.ldapLoginLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.LOGIN;
                return;
            }
            LDAPLogin = dat;
            infoFlag |= (uint)REQINFOFLAGS.LOGIN;
            PawnStoreSetupForm.CheckmarkLabel(true, this.ldapLoginLabel);
            this.ldapPasswordTextBox.Enabled = true;
        }
Пример #9
0
        private void ldapServerTextBox_TextChanged(object sender, EventArgs e)
        {
            string dat;

            if (!PawnStoreSetupForm.GetTextBoxData(this.ldapServerTextBox, null, out dat))
            {
                PawnStoreSetupForm.CheckmarkLabel(false, this.ldapServerLabel);
                infoFlag &= ~(uint)REQINFOFLAGS.SERVER;
                return;
            }
            LDAPServer = dat;
            infoFlag  |= (uint)REQINFOFLAGS.SERVER;
            PawnStoreSetupForm.CheckmarkLabel(true, this.ldapServerLabel);
            this.ldapPortTextBox.Enabled = true;
        }