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); }
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; }