Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the InputPinForm.
        /// </summary>
        /// <param name="validator">The validator that checks the PIN code for validity.</param>
        /// <param name="description">A description that's shown to the user. If this parameter is a null reference, a default description will be shown.</param>
        public InputPinForm(PasswordValidator validator, string description) {
			InitializeComponent();
            m_Description = description;
            if (validator == null)
                m_Validator = new PasswordValidator(new IValidator[] { new NumericValidator(4, false) });
            else
                m_Validator = validator;
		}
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the InputPinForm.
 /// </summary>
 /// <param name="validator">The validator that checks the PIN code for validity.</param>
 public InputPinForm(PasswordValidator validator)
     : this(validator, null) {
 }