protected virtual void OnUpDown(UpDownEventArgs e) { if (UpDown != null) { UpDown(this, e); } }
protected virtual void OnUpDown(UpDownEventArgs upevent) { if (this.upDownEventHandler != null) { this.upDownEventHandler(this, upevent); } }
private void OnUpDown(object source, UpDownEventArgs e) { if (e.ButtonID == 1) { this.UpButton(); } else if (e.ButtonID == 2) { this.DownButton(); } }
private void upDownButtons_UpDown(Object source, UpDownEventArgs e) { if (e.ButtonID == (int)(ButtonID.Up)) { UpButton(); } else { if (e.ButtonID == (int)(ButtonID.Down)) { DownButton(); } } }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// updowneventhandler.BeginInvoke(source, e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this UpDownEventHandler updowneventhandler, Object source, UpDownEventArgs e, AsyncCallback callback) { if(updowneventhandler == null) throw new ArgumentNullException("updowneventhandler"); return updowneventhandler.BeginInvoke(source, e, callback, null); }
private void upDownButtons_UpDown(Object source, UpDownEventArgs e) { if (e.ButtonID == (int)(ButtonID.Up)) { UpButton(); } else { if (e.ButtonID == (int)(ButtonID.Down)) { DownButton(); } } }
protected virtual void OnUpDown(UpDownEventArgs e) { if (UpDown != null) { UpDown(this, e); } }
private void OnUpDown(object source, UpDownEventArgs e) { if (e.ButtonID == 1) { this.UpButton(); } else if (e.ButtonID == 2) { this.DownButton(); } }
protected virtual void OnUpDown(UpDownEventArgs upevent) { if (this.upDownEventHandler != null) { this.upDownEventHandler(this, upevent); } }
/// <include file='doc\UpDownBase.uex' path='docs/doc[@for="UpDownBase.OnUpDown"]/*' /> /// <devdoc> /// /// Handles UpDown events, which are generated by clicking on /// the updown buttons in the child updown control. /// /// </devdoc> private void OnUpDown(object source, UpDownEventArgs e) { // Modify the value if (e.ButtonID == (int)ButtonID.Up) UpButton(); else if (e.ButtonID == (int)ButtonID.Down) DownButton(); }