MigSharp.Core.Commands.Command.AddTranslatableCommand C# (CSharp) Méthode

AddTranslatableCommand() protected méthode

protected AddTranslatableCommand ( ITranslatableCommand command ) : void
command ITranslatableCommand
Résultat void
        protected void AddTranslatableCommand(ITranslatableCommand command)
        {
            if (_parent != null)
            {
                _parent.AddTranslatableCommand(command);
            }
            else
            {
                _translatableCommands.Add(command);
            }
        }

Usage Example

Exemple #1
0
 protected void AddTranslatableCommand(ITranslatableCommand command)
 {
     if (_parent != null)
     {
         _parent.AddTranslatableCommand(command);
     }
     else
     {
         _translatableCommands.Add(command);
     }
 }