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; } } public override bool Checked { get { return false; } } public override void Execute(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; } } }