// Copyright (C) Stichting Deltares 2025. All rights reserved. // // This file is part of the application DAM - UI. // // DAM - UI is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. using System.ComponentModel; using Deltares.Standard.Attributes; using Deltares.Standard.EventPublisher; namespace Deltares.Dam.Data; public class DamJob { private bool? run = false; private object subject; private string name; public DamJob() {} public DamJob(object subject) : this() { this.subject = subject; } [Label("Name")] [ReadOnly(true)] [PropertyOrder(0, 0)] public virtual string Name { get { return subject != null ? subject.ToString() : ""; } set { name = value; } } [Label("Run")] [PropertyOrder(0, 1)] public virtual bool? Run { get { return run; } set { DataEventPublisher.BeforeChange(this, "Run"); run = value; DataEventPublisher.AfterChange(this, "Run"); } } [Browsable(false)] public virtual object Subject { get { return subject; } set { subject = value; } } }