public void AddCommand(CommandInfo commandInfo, ICommand command)
        {
            if (!string.IsNullOrEmpty(commandInfo.BarName) && commandBarServices.ContainsKey(commandInfo.BarName))
            {
                commandBarServices[commandInfo.BarName].AddCommand(commandInfo, command);
            }
            else if (string.IsNullOrEmpty(commandInfo.BarName) && defaultCommandBarService != null)
            {
                defaultCommandBarService.AddCommand(commandInfo, command);

            }
            else
            {
                cache.Add(new CommandObject { CommandInfo = commandInfo, Command = command });
            }
        }
Esempio n. 2
0
 public void AddCommand(CommandInfo commandInfo, ICommand command)
 {
     presenter.AddCommand(commandInfo, command);
 }