예제 #1
0
 /// <summary>
 /// Occurs when the control is resized.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnResize(ControlEventArgs e)
 {
     EventHandler<ControlEventArgs> handler = Resized;
     if (handler != null)
     {
         handler(this, e);
     }
 }
예제 #2
0
 /// <summary>
 /// Occurs when the control's text changes.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnTextChange(ControlEventArgs e)
 {
     EventHandler<ControlEventArgs> handler = TextChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
예제 #3
0
        /// <summary>
        /// Occurs when a mouse button is depressed and released.
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnClick(ControlEventArgs e)
        {
            e.SourceControl = this;

            EventHandler<ControlEventArgs> handler = Clicked;
            if (handler != null)
            {
                handler(this, e);
            }
            //TODO: workout click logic.
        }