public override void EndCommandExecution(DevExpress.Utils.Commands.Command command, DevExpress.Utils.Commands.ICommandUIState state)
 {
     base.EndCommandExecution(command, state);
     if (!RichEditControl.IsUpdateLocked)
     {
         RaiseCommandExecutedEvent(new CommandEventArgs(command.ToString(), command.Description));
     }
 }
コード例 #2
0
        public void UpdateCommandUIState(DevExpress.Utils.Commands.Command command, DevExpress.Utils.Commands.ICommandUIState state)
        {
            if (!(command is RichEditCommand richEditCommand))
            {
                return;
            }

            if (richEditCommand.Id == SnapCommandId.NewDataSource)
            {
                state.Enabled = false;
                state.Visible = false;
            }
            else if (richEditCommand.Id == SnapCommandId.MailMergeDataSource)
            {
                state.Enabled = false;
                state.Visible = false;
            }
        }