Exemplo n.º 1
0
 public MaskedTextBox(Resco.Controls.MaskedTextBox.MaskedTextProvider maskedTextProvider)
 {
     this.m_wndproc = IntPtr.Zero;
     this.m_wndprocReal = IntPtr.Zero;
     this.m_provider = maskedTextProvider;
     this.m_provider.TextChanged += new EventHandler(this.MaskProviderTextChanged);
     this.m_caret = 0;
     this.m_internalTextSet = false;
     this.m_beepOnError = false;
     this.m_hidePromptOnLeave = false;
     base.Multiline = false;
     this.m_validatingType = null;
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.m_provider != null)
         {
             this.m_provider.TextChanged -= new EventHandler(this.MaskProviderTextChanged);
         }
         this.m_provider = null;
     }
     base.Dispose(disposing);
 }