public NumericMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
 {
     this.owner       = owner;
     this.numericType = GetFormat(mask, culture);
     this.mask        = mask;
     this.culture     = culture;
     this.provider    = new NumericCharacterTextBoxProvider(mask, culture, this.numericType, owner);
     this.promptChar  = this.provider.PromptChar;
     this.textBoxItem = owner.TextBoxItem;
 }
Esempio n. 2
0
 public StandartMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner, bool allowPromptAsInput, char promptChar, char passwordChar, bool restrictToAscii)
 {
     this.allowPromptAsInput = allowPromptAsInput;
     this.promptChar         = promptChar;
     this.passwordChar       = passwordChar;
     this.restrictToAscii    = restrictToAscii;
     this.mask        = mask;
     this.culture     = culture;
     this.owner       = owner;
     this.provider    = new StandartCharacterMaskEditBoxProvider(mask, culture, owner, allowPromptAsInput, promptChar, passwordChar, restrictToAscii);
     this.promptChar  = this.provider.PromptChar;
     this.textBoxItem = owner.TextBoxItem;
 }
 public NumericMaskTextBoxProvider(
     string mask,
     CultureInfo culture,
     RadMaskedEditBoxElement owner)
 {
     if (mask.ToLower() == "d")
     {
         mask += "0";
     }
     this.owner       = owner;
     this.numericType = NumericMaskTextBoxProvider.GetFormat(mask, culture);
     this.mask        = mask;
     this.culture     = culture;
     this.provider    = this.CreateNumericCharacterTextBoxProvider(mask, culture, this.numericType, owner);
     this.promptChar  = this.provider.PromptChar;
     this.textBoxItem = owner.TextBoxItem;
 }