public SubmodulesMenu(Repository repository) { Verify.Argument.IsNotNull(repository, nameof(repository)); Repository = repository; Items.Add(GuiItemFactory.GetShowSubmodulesViewItem <ToolStripMenuItem>()); Items.Add(GuiItemFactory.GetRefreshSubmodulesItem <ToolStripMenuItem>(Repository)); Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetUpdateSubmodulesItem <ToolStripMenuItem>(Repository.Submodules)); Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetAddSubmoduleItem <ToolStripMenuItem>(Repository)); }