public RecentRecipesCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "Recent Recipes", RequestedMenuPosition, true) { _onRecipeLoaded = OnRecipeLoaded; _onRecipeSaved = OnRecipeSaved; _recentRecipies = new RecentRecipies(commandTarget); _recentRecipies.AddRecipe(RecipeFactory.Current.PathName); RecipeFactory.Loaded += _onRecipeLoaded; RecipeFactory.Current.Saved += _onRecipeSaved; }