/// <summary> /// Retrives a short, descriptive name of the command for the user. This should /// be translated appropriately before returning. /// </summary> /// <param name="commandFactoryReference">A <see cref="CommandFactoryReference"/> representing the command and an optional parameter.</param> /// <returns>A string suitable for display to the user.</returns> public string GetTitle(CommandFactoryReference commandFactoryReference) { // Establish our contracts. if (commandFactoryReference == null) { throw new ArgumentNullException("commandFactoryReference"); } // Grab the factory for the key and return the title. ICommandFactory <TContext> factory = GetFactory(commandFactoryReference.Key); string results = factory.GetTitle(commandFactoryReference); return(results); }
public void Do( object context, CommandFactoryReference commandFactoryReference) { // Establish our contracts. if (commandFactoryReference == null) { throw new ArgumentNullException("commandFactoryReference"); } // Grab the factory for the key pass the request to the factory. ICommandFactory <TContext> factory = GetFactory(commandFactoryReference.Key); factory.Do(context, commandFactoryReference, this); }
public override string GetTitle( CommandFactoryReference commandFactoryReference) { return("Redo"); }