internal DefaultControllerCommand(ControllerCommandTypes CommandType, Func<Controller, IControllerCommandItem, object> Action, bool IsKeyDownCommand) : base(CommandType.ToString(), Action) { this.commandType = CommandType; this.isKeyDownCommand = IsKeyDownCommand; }
internal DXBarButtonCommandItem(ControllerCommandTypes Type, BarButtonItem BarButtonItem) : base(Type) { _barButtonItem = BarButtonItem; _barButtonItem.ItemClick += new ItemClickEventHandler(_barButtonItem_ItemClick); }
public UICommandItem(ControllerCommandTypes CommandType) : this(CommandType.ToString()) { }
internal DefaultControllerCommand(ControllerCommandTypes CommandType, Func<Controller, IControllerCommandItem, object> Action) : this(CommandType, Action, true) { }
private void AddCommand(ControllerCommandTypes Type, Func<Controller, IControllerCommandItem, object> Action, bool IsKeyDownCommand) { AddCommand(new DefaultControllerCommand(Type, Action, IsKeyDownCommand)); }
private void AddCommand(ControllerCommandTypes Type, Func<Controller, IControllerCommandItem, object> Action) { AddCommand(Type, Action, true); }
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; } }
private bool GetIsFieldDependedCommand(ControllerCommandTypes CommandType) { if (CommandType == ControllerCommandTypes.AddFkItem || CommandType == ControllerCommandTypes.SelectFkItem) { return true; } else { return false; } }
public bool Execute(ControllerCommandTypes CommandType) { return Execute(this[CommandType.ToString()]); }
private IControllerCommand this[ControllerCommandTypes CommandType] { get { return this[CommandType.ToString()]; } }