Inheritance: System.EventArgs
Exemplo n.º 1
0
        /// <summary>
        /// Raises the <see cref="E:"/> event.
        /// </summary>
        /// <param name="e">The <see cref="TextWrittenEventArgs"/> instance containing the event data.</param>
        protected virtual void OnTextChanged(TextWrittenEventArgs e)
        {
            EventHandler <TextWrittenEventArgs> handler = Interlocked.CompareExchange(ref this.textChanged, null, null);

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:"/> event.
        /// </summary>
        /// <param name="e">The <see cref="TextWrittenEventArgs"/> instance containing the event data.</param>
        protected virtual void OnTextChanged(TextWrittenEventArgs e)
        {
            EventHandler<TextWrittenEventArgs> handler = Interlocked.CompareExchange(ref this.textChanged, null, null);

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
 private void TestObjectTextChanged(object sender, TextWrittenEventArgs e)
 {
     this.eventText += e.Text;
 }