CommandLoader(IWpfCommandService wpfCommandService, IDocumentTabService documentTabService, DeleteTypeDefCommand.EditMenuCommand removeCmd, DeleteTypeDefCommand.CodeCommand removeCmd2, TypeDefSettingsCommand.EditMenuCommand settingsCmd, TypeDefSettingsCommand.CodeCommand settingsCmd2) { wpfCommandService.AddRemoveCommand(removeCmd); wpfCommandService.AddRemoveCommand(removeCmd2, documentTabService); wpfCommandService.AddSettingsCommand(documentTabService, settingsCmd, settingsCmd2); }
CommandLoader(IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, DeleteTypeDefCommand.EditMenuCommand removeCmd, DeleteTypeDefCommand.CodeCommand removeCmd2, TypeDefSettingsCommand.EditMenuCommand settingsCmd, TypeDefSettingsCommand.CodeCommand settingsCmd2) { wpfCommandManager.AddRemoveCommand(removeCmd); wpfCommandManager.AddRemoveCommand(removeCmd2, fileTabManager); wpfCommandManager.AddSettingsCommand(fileTabManager, settingsCmd, settingsCmd2); }