public RecentAssembliesCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Assembly", "Recent Assemblies", DesiredMenuPosition) { _onRecipeLoaded = OnRecipeLoaded; _onRecipeClosing = OnRecipeClosing; _onAssemblyAdded = OnAssemblyAdded; _recentAssemblies = new RecentAssemblies(); RecipeFactory.Loaded += _onRecipeLoaded; RecipeFactory.Closing += _onRecipeClosing; RecipeFactory.Current.AssemblyAdded += _onAssemblyAdded; }