Ejemplo n.º 1
0
        private void passwordBtn_Click(object sender, EventArgs e)
        {
            if (this.passwordStatus == PasswordStatus.NO_PASSWORD)
            {
                // set venue password

                PasswordForm passwordForm = new PasswordForm();
                DialogResult dr           = passwordForm.ShowDialog();

                if (dr == DialogResult.OK)
                {
                    this.passwordStatus    = passwordForm.PWStatus;
                    this.privateVenueState = GetPrivateVenueState(passwordForm.Password);
                }
            }
            else
            {
                this.passwordStatus    = PasswordStatus.NO_PASSWORD;
                this.privateVenueState = null;
            }

            if (this.passwordStatus == PasswordStatus.NO_PASSWORD)
            {
                this.passwordBtn.Text = Strings.SetPassword;
            }
            else
            {
                this.passwordBtn.Text = Strings.ClearPassword;
            }
        }
Ejemplo n.º 2
0
        private void passwordBtn_Click(object sender, EventArgs e)
        {
            if (this.passwordStatus == PasswordStatus.NO_PASSWORD) {
                // set venue password
                
                PasswordForm passwordForm = new PasswordForm();
                DialogResult dr = passwordForm.ShowDialog();

                if (dr == DialogResult.OK) {
                    this.passwordStatus = passwordForm.PWStatus;
                    this.privateVenueState = GetPrivateVenueState(passwordForm.Password);
                }
            }
            else { 
                this.passwordStatus = PasswordStatus.NO_PASSWORD;           
                this.privateVenueState = null;
            }

            if (this.passwordStatus == PasswordStatus.NO_PASSWORD) {
                this.passwordBtn.Text = Strings.SetPassword;
            }
            else {
                this.passwordBtn.Text = Strings.ClearPassword;
            }
        }