protected override void DoExecute(ActionEventArgs e) { base.DoExecute(e); if (!(e.Handled || (this.OnExecute == null))) { this.OnExecute(this, e); e.Handled = true; } }
protected override void DoExecute(ActionEventArgs e) { base.DoExecute(e); if (!e.Handled) { TextBox target = e.Target as TextBox; if (target != null) { target.Copy(); e.Handled = true; } else { ComboBox box2 = e.Target as ComboBox; if ((box2 != null) && (box2.DropDownStyle != ComboBoxStyle.DropDownList)) { Windows.SendMessage(box2.Handle, 0x301, IntPtr.Zero, IntPtr.Zero); e.Handled = true; } } } }
protected virtual void DoExecute(ActionEventArgs e) { if (this.Owner != null) { this.Owner.RaisePreviewExecuteAction(e); } }
public virtual bool Execute(object source, object target) { if ((this.Update(source, target) & ActionState.Enabled) > ActionState.None) { ActionEventArgs e = new ActionEventArgs(this, source, target); this.DoExecute(e); return e.Handled; } return false; }
protected override void DoExecute(ActionEventArgs e) { base.DoExecute(e); e.Handled = e.Handled || ((this.FAction != null) && this.FAction.Execute(e.Source, e.Target)); }
protected override void DoExecute(ActionEventArgs e) { base.DoExecute(e); if (!e.Handled) { TextBox target = e.Target as TextBox; if (target != null) { target.SelectAll(); e.Handled = true; } else { ComboBox box2 = e.Target as ComboBox; if ((box2 != null) && (box2.DropDownStyle != ComboBoxStyle.DropDownList)) { box2.SelectAll(); e.Handled = true; } } } }