protected override void DoUpdate(UpdateActionEventArgs e)
 {
     base.DoUpdate(e);
     if (!(e.Handled || (this.FAction == null)))
     {
         e.State = this.FAction.Update(e.Source, e.Target);
     }
 }
 protected override void DoUpdate(UpdateActionEventArgs e)
 {
     base.DoUpdate(e);
     if (!(e.Handled || (this.OnUpdate == null)))
     {
         this.OnUpdate(this, e);
         e.Handled = true;
     }
     else
     {
         e.State = ActionState.Visible | ((this.OnExecute != null) ? ActionState.Enabled : ActionState.None);
     }
 }
 public virtual ActionState Update(object source, object target)
 {
     if (!base.DesignMode)
     {
         UpdateActionEventArgs e = new UpdateActionEventArgs(this, source, target);
         this.DoUpdate(e);
         return e.State;
     }
     return (ActionState.Visible | ActionState.Enabled);
 }
 protected virtual void DoUpdate(UpdateActionEventArgs e)
 {
     if (this.Owner != null)
     {
         this.Owner.RaisePreviewUpdateAction(e);
     }
 }
 protected override void DoUpdate(UpdateActionEventArgs e)
 {
     base.DoUpdate(e);
     if (!e.Handled)
     {
         e.State = ActionState.Visible;
         TextBox target = e.Target as TextBox;
         if (target != null)
         {
             if (target.SelectionLength > 0)
             {
                 e.State |= ActionState.Enabled;
             }
             e.Handled = true;
         }
         else
         {
             ComboBox box2 = e.Target as ComboBox;
             if ((box2 != null) && (box2.DropDownStyle != ComboBoxStyle.DropDownList))
             {
                 if (box2.SelectionLength > 0)
                 {
                     e.State |= ActionState.Enabled;
                 }
                 e.Handled = true;
             }
         }
     }
 }
 protected override void DoUpdate(UpdateActionEventArgs e)
 {
     base.DoUpdate(e);
     if (!e.Handled)
     {
         e.State = ActionState.Visible;
         ComboBox target = e.Target as ComboBox;
         if ((e.Target is TextBox) || ((target != null) && (target.DropDownStyle != ComboBoxStyle.DropDownList)))
         {
             try
             {
                 if (Clipboard.ContainsText())
                 {
                     e.State |= ActionState.Enabled;
                 }
             }
             catch
             {
             }
             e.Handled = true;
         }
     }
 }