//------------------------------------------------------------------------------ // // This code was generated by a tool. // Tango Observables Generator // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. Do not modify! // //------------------------------------------------------------------------------ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Xml.Serialization; using Newtonsoft.Json; using System.Linq; using Tango.DAL.Remote.DB; using Tango.Core; using System.ComponentModel; using Tango.Core.CustomAttributes; namespace Tango.BL.Entities { [Table("CONFIGURATIONS")] public abstract class ConfigurationBase : ObservableEntity { public event EventHandler HardwareConfigurationStringChanged; public event EventHandler ApplicationDisplayPanelVersionChanged; public event EventHandler ApplicationFirmwareVersionChanged; public event EventHandler ApplicationOsVersionChanged; public event EventHandler EmbeddedFirmwareVersionChanged; public event EventHandler HardwareVersionChanged; public event EventHandler> IdsPacksChanged; public event EventHandler> MachinesChanged; protected String _applicationosversionguid; /// /// Gets or sets the configurationbase application os version guid. /// [Column("APPLICATION_OS_VERSION_GUID")] [ForeignKey("ApplicationOsVersion")] public String ApplicationOsVersionGuid { get { return _applicationosversionguid; } set { if (_applicationosversionguid != value) { _applicationosversionguid = value; } } } protected String _applicationfirmwareversionguid; /// /// Gets or sets the configurationbase application firmware version guid. /// [Column("APPLICATION_FIRMWARE_VERSION_GUID")] [ForeignKey("ApplicationFirmwareVersion")] public String ApplicationFirmwareVersionGuid { get { return _applicationfirmwareversionguid; } set { if (_applicationfirmwareversionguid != value) { _applicationfirmwareversionguid = value; } } } protected String _applicationdisplaypanelversionguid; /// /// Gets or sets the configurationbase application display panel version guid. /// [Column("APPLICATION_DISPLAY_PANEL_VERSION_GUID")] [ForeignKey("ApplicationDisplayPanelVersion")] public String ApplicationDisplayPanelVersionGuid { get { return _applicationdisplaypanelversionguid; } set { if (_applicationdisplaypanelversionguid != value) { _applicationdisplaypanelversionguid = value; } } } protected String _embeddedfirmwareversionguid; /// /// Gets or sets the configurationbase embedded firmware version guid. /// [Column("EMBEDDED_FIRMWARE_VERSION_GUID")] [ForeignKey("EmbeddedFirmwareVersion")] public String EmbeddedFirmwareVersionGuid { get { return _embeddedfirmwareversionguid; } set { if (_embeddedfirmwareversionguid != value) { _embeddedfirmwareversionguid = value; } } } protected String _hardwareversionguid; /// /// Gets or sets the configurationbase hardware version guid. /// [Column("HARDWARE_VERSION_GUID")] [ForeignKey("HardwareVersion")] public String HardwareVersionGuid { get { return _hardwareversionguid; } set { if (_hardwareversionguid != value) { _hardwareversionguid = value; } } } protected String _hardwareconfigurationstring; /// /// Gets or sets the configurationbase hardware configuration string. /// [Column("HARDWARE_CONFIGURATION_STRING")] public String HardwareConfigurationString { get { return _hardwareconfigurationstring; } set { if (_hardwareconfigurationstring != value) { _hardwareconfigurationstring = value; OnHardwareConfigurationStringChanged(value); } } } protected ApplicationDisplayPanelVersion _applicationdisplaypanelversion; /// /// Gets or sets the configurationbase application display panel versions. /// [XmlIgnore] [JsonIgnore] public virtual ApplicationDisplayPanelVersion ApplicationDisplayPanelVersion { get { return _applicationdisplaypanelversion; } set { if (_applicationdisplaypanelversion != value) { _applicationdisplaypanelversion = value; if (ApplicationDisplayPanelVersion != null) { ApplicationDisplayPanelVersionGuid = ApplicationDisplayPanelVersion.Guid; } OnApplicationDisplayPanelVersionChanged(value); } } } protected ApplicationFirmwareVersion _applicationfirmwareversion; /// /// Gets or sets the configurationbase application firmware versions. /// [XmlIgnore] [JsonIgnore] public virtual ApplicationFirmwareVersion ApplicationFirmwareVersion { get { return _applicationfirmwareversion; } set { if (_applicationfirmwareversion != value) { _applicationfirmwareversion = value; if (ApplicationFirmwareVersion != null) { ApplicationFirmwareVersionGuid = ApplicationFirmwareVersion.Guid; } OnApplicationFirmwareVersionChanged(value); } } } protected ApplicationOsVersion _applicationosversion; /// /// Gets or sets the configurationbase application os versions. /// [XmlIgnore] [JsonIgnore] public virtual ApplicationOsVersion ApplicationOsVersion { get { return _applicationosversion; } set { if (_applicationosversion != value) { _applicationosversion = value; if (ApplicationOsVersion != null) { ApplicationOsVersionGuid = ApplicationOsVersion.Guid; } OnApplicationOsVersionChanged(value); } } } protected EmbeddedFirmwareVersion _embeddedfirmwareversion; /// /// Gets or sets the configurationbase embedded firmware versions. /// [XmlIgnore] [JsonIgnore] public virtual EmbeddedFirmwareVersion EmbeddedFirmwareVersion { get { return _embeddedfirmwareversion; } set { if (_embeddedfirmwareversion != value) { _embeddedfirmwareversion = value; if (EmbeddedFirmwareVersion != null) { EmbeddedFirmwareVersionGuid = EmbeddedFirmwareVersion.Guid; } OnEmbeddedFirmwareVersionChanged(value); } } } protected HardwareVersion _hardwareversion; /// /// Gets or sets the configurationbase hardware versions. /// [XmlIgnore] [JsonIgnore] public virtual HardwareVersion HardwareVersion { get { return _hardwareversion; } set { if (_hardwareversion != value) { _hardwareversion = value; if (HardwareVersion != null) { HardwareVersionGuid = HardwareVersion.Guid; } OnHardwareVersionChanged(value); } } } protected SynchronizedObservableCollection _idspacks; /// /// Gets or sets the configurationbase ids packs. /// public virtual SynchronizedObservableCollection IdsPacks { get { return _idspacks; } set { if (_idspacks != value) { _idspacks = value; OnIdsPacksChanged(value); } } } protected SynchronizedObservableCollection _machines; /// /// Gets or sets the configurationbase machines. /// public virtual SynchronizedObservableCollection Machines { get { return _machines; } set { if (_machines != value) { _machines = value; OnMachinesChanged(value); } } } /// /// Called when the HardwareConfigurationString has changed. /// protected virtual void OnHardwareConfigurationStringChanged(String hardwareconfigurationstring) { HardwareConfigurationStringChanged?.Invoke(this, hardwareconfigurationstring); RaisePropertyChanged(nameof(HardwareConfigurationString)); } /// /// Called when the ApplicationDisplayPanelVersion has changed. /// protected virtual void OnApplicationDisplayPanelVersionChanged(ApplicationDisplayPanelVersion applicationdisplaypanelversion) { ApplicationDisplayPanelVersionChanged?.Invoke(this, applicationdisplaypanelversion); RaisePropertyChanged(nameof(ApplicationDisplayPanelVersion)); } /// /// Called when the ApplicationFirmwareVersion has changed. /// protected virtual void OnApplicationFirmwareVersionChanged(ApplicationFirmwareVersion applicationfirmwareversion) { ApplicationFirmwareVersionChanged?.Invoke(this, applicationfirmwareversion); RaisePropertyChanged(nameof(ApplicationFirmwareVersion)); } /// /// Called when the ApplicationOsVersion has changed. /// protected virtual void OnApplicationOsVersionChanged(ApplicationOsVersion applicationosversion) { ApplicationOsVersionChanged?.Invoke(this, applicationosversion); RaisePropertyChanged(nameof(ApplicationOsVersion)); } /// /// Called when the EmbeddedFirmwareVersion has changed. /// protected virtual void OnEmbeddedFirmwareVersionChanged(EmbeddedFirmwareVersion embeddedfirmwareversion) { EmbeddedFirmwareVersionChanged?.Invoke(this, embeddedfirmwareversion); RaisePropertyChanged(nameof(EmbeddedFirmwareVersion)); } /// /// Called when the HardwareVersion has changed. /// protected virtual void OnHardwareVersionChanged(HardwareVersion hardwareversion) { HardwareVersionChanged?.Invoke(this, hardwareversion); RaisePropertyChanged(nameof(HardwareVersion)); } /// /// Called when the IdsPacks has changed. /// protected virtual void OnIdsPacksChanged(SynchronizedObservableCollection idspacks) { IdsPacksChanged?.Invoke(this, idspacks); RaisePropertyChanged(nameof(IdsPacks)); } /// /// Called when the Machines has changed. /// protected virtual void OnMachinesChanged(SynchronizedObservableCollection machines) { MachinesChanged?.Invoke(this, machines); RaisePropertyChanged(nameof(Machines)); } /// /// Initializes a new instance of the class. /// public ConfigurationBase() : base() { IdsPacks = new SynchronizedObservableCollection(); Machines = new SynchronizedObservableCollection(); } } }