コード例 #1
0
        internal DefaultControllerCommand(ControllerCommandTypes CommandType, Func<Controller, IControllerCommandItem, object> Action, bool IsKeyDownCommand)
            : base(CommandType.ToString(), Action)
        {
            this.commandType = CommandType;

            this.isKeyDownCommand = IsKeyDownCommand;
        }
コード例 #2
0
        internal DXBarButtonCommandItem(ControllerCommandTypes Type, BarButtonItem BarButtonItem) 
            : base(Type)
        {
            _barButtonItem = BarButtonItem;

            _barButtonItem.ItemClick += new ItemClickEventHandler(_barButtonItem_ItemClick);
        }
コード例 #3
0
 public UICommandItem(ControllerCommandTypes CommandType) 
     : this(CommandType.ToString())
 {
 }
コード例 #4
0
 internal DefaultControllerCommand(ControllerCommandTypes CommandType, Func<Controller, IControllerCommandItem, object> Action)
     : this(CommandType, Action, true)
 {
 }
コード例 #5
0
 private void AddCommand(ControllerCommandTypes Type, Func<Controller, IControllerCommandItem, object> Action, bool IsKeyDownCommand)
 {
     AddCommand(new DefaultControllerCommand(Type, Action, IsKeyDownCommand));
 }
コード例 #6
0
 private void AddCommand(ControllerCommandTypes Type, Func<Controller, IControllerCommandItem, object> Action)
 {
     AddCommand(Type, Action, true);
 }
コード例 #7
0
            private IControllerCommandItem GetFocusedCommandItem(ControllerCommandTypes CommandType)
            {
                IXtraEditCommand editCommand = IsListActive ? Controller.ListUI.FocusedEditCommand : Controller.ItemUI.FocusedEditCommand;

                if (editCommand != null)
                {
                    IControllerCommandItem commandItem = editCommand.SupportedCommands.FirstOrDefault(p => p.CommandName == CommandType.ToString());

                    return commandItem;
                }
                else
                {
                    return null;
                }

            }
コード例 #8
0
 private bool GetIsFieldDependedCommand(ControllerCommandTypes CommandType)
 {
     if (CommandType == ControllerCommandTypes.AddFkItem
         || CommandType == ControllerCommandTypes.SelectFkItem)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
コード例 #9
0
 public bool Execute(ControllerCommandTypes CommandType)
 {
     return Execute(this[CommandType.ToString()]);
 }
コード例 #10
0
 private IControllerCommand this[ControllerCommandTypes CommandType]
 {
     get { return this[CommandType.ToString()]; }
 }