Exemplo n.º 1
0
 private void AddAction(AAction action)
 {
     if (action != null)
     {
         _actions.Add(action);
         action.BindToContext(this);
     }
 }
Exemplo n.º 2
0
        internal AActionMenuItem(AAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            this.action  = action;
            this.Text    = action.Text;
            this.Enabled = action.Enabled;
        }