using Core.Common.Gui; using Ringtoets.Integration.Data; namespace Ringtoets.Demo.Commands { /// /// Command that adds a new with demo data to the project tree. /// public class AddNewDemoDuneAssessmentSectionCommand : GuiCommand { public override bool Enabled { get { return true; } } protected override void OnExecute(params object[] arguments) { var project = Gui.Project; project.Items.Add(CreateNewDemoAssessmentSection()); project.NotifyObservers(); } private DuneAssessmentSection CreateNewDemoAssessmentSection() { var demoAssessmentSection = new DuneAssessmentSection { Name = "Demo duintraject" }; return demoAssessmentSection; } } }