aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-01-03 13:36:10 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-01-03 13:36:10 +0200
commit185865c043b5fdaffef5356e305e0cc553ccc126 (patch)
tree307084e5e9eb63e68356a1b5908edde068ca7a21 /Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs
parent25f5e6ddef7ef2fa0a747305847eeb4ceee5a2c9 (diff)
downloadTango-185865c043b5fdaffef5356e305e0cc553ccc126.tar.gz
Tango-185865c043b5fdaffef5356e305e0cc553ccc126.zip
Added new BL entities with inheritance !!!!
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs1160
1 files changed, 1160 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs
new file mode 100644
index 000000000..892f535d5
--- /dev/null
+++ b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs
@@ -0,0 +1,1160 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// 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!
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+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;
+
+namespace Tango.BL.Entities
+{
+ [Table("MACHINES")]
+ public abstract class MachineBase : ObservableEntity<Machine>
+ {
+
+ public event EventHandler<String> SerialNumberChanged;
+
+ public event EventHandler<String> NameChanged;
+
+ public event EventHandler<DateTime> ProductionDateChanged;
+
+ public event EventHandler<String> TargetJobTypesChanged;
+
+ public event EventHandler<String> TargetColorSpaceCodesChanged;
+
+ public event EventHandler<Double> DefaultSegmentLengthChanged;
+
+ public event EventHandler<String> OsKeyChanged;
+
+ public event EventHandler<Boolean> AutoLoginChanged;
+
+ public event EventHandler<Boolean> AutoCheckForUpdatesChanged;
+
+ public event EventHandler<Boolean> SetupActivationChanged;
+
+ public event EventHandler<Boolean> SetupRemoteAssistanceChanged;
+
+ public event EventHandler<Boolean> SetupUwfChanged;
+
+ public event EventHandler<Boolean> SetupFirmwareChanged;
+
+ public event EventHandler<Boolean> SetupFpgaChanged;
+
+ public event EventHandler<Boolean> IsDemoChanged;
+
+ public event EventHandler<SynchronizedObservableCollection<Cat>> CatsChanged;
+
+ public event EventHandler<ColorSpace> DefaultColorSpaceChanged;
+
+ public event EventHandler<Configuration> ConfigurationChanged;
+
+ public event EventHandler<SynchronizedObservableCollection<Job>> JobsChanged;
+
+ public event EventHandler<MachineVersion> MachineVersionChanged;
+
+ public event EventHandler<SynchronizedObservableCollection<MachinesEvent>> MachinesEventsChanged;
+
+ public event EventHandler<Organization> OrganizationChanged;
+
+ public event EventHandler<Rml> DefaultRmlChanged;
+
+ public event EventHandler<SpoolType> DefaultSpoolTypeChanged;
+
+ public event EventHandler<SynchronizedObservableCollection<Spool>> SpoolsChanged;
+
+ protected String _serialnumber;
+
+ /// <summary>
+ /// Gets or sets the machinebase serial number.
+ /// </summary>
+
+ [Column("SERIAL_NUMBER")]
+
+ public String SerialNumber
+ {
+ get
+ {
+ return _serialnumber;
+ }
+
+ set
+ {
+ if (_serialnumber != value)
+ {
+ _serialnumber = value;
+
+ OnSerialNumberChanged(value);
+
+ }
+ }
+ }
+
+ protected String _name;
+
+ /// <summary>
+ /// Gets or sets the machinebase name.
+ /// </summary>
+
+ [Column("NAME")]
+
+ public String Name
+ {
+ get
+ {
+ return _name;
+ }
+
+ set
+ {
+ if (_name != value)
+ {
+ _name = value;
+
+ OnNameChanged(value);
+
+ }
+ }
+ }
+
+ protected DateTime _productiondate;
+
+ /// <summary>
+ /// Gets or sets the machinebase production date.
+ /// </summary>
+
+ [Column("PRODUCTION_DATE")]
+
+ public DateTime ProductionDate
+ {
+ get
+ {
+ return _productiondate;
+ }
+
+ set
+ {
+ if (_productiondate != value)
+ {
+ _productiondate = value;
+
+ OnProductionDateChanged(value);
+
+ }
+ }
+ }
+
+ protected String _organizationguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase organization guid.
+ /// </summary>
+
+ [Column("ORGANIZATION_GUID")]
+ [ForeignKey("Organization")]
+
+ public String OrganizationGuid
+ {
+ get
+ {
+ return _organizationguid;
+ }
+
+ set
+ {
+ if (_organizationguid != value)
+ {
+ _organizationguid = value;
+ }
+ }
+ }
+
+ protected String _machineversionguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase machine version guid.
+ /// </summary>
+
+ [Column("MACHINE_VERSION_GUID")]
+ [ForeignKey("MachineVersion")]
+
+ public String MachineVersionGuid
+ {
+ get
+ {
+ return _machineversionguid;
+ }
+
+ set
+ {
+ if (_machineversionguid != value)
+ {
+ _machineversionguid = value;
+ }
+ }
+ }
+
+ protected String _configurationguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase configuration guid.
+ /// </summary>
+
+ [Column("CONFIGURATION_GUID")]
+ [ForeignKey("Configuration")]
+
+ public String ConfigurationGuid
+ {
+ get
+ {
+ return _configurationguid;
+ }
+
+ set
+ {
+ if (_configurationguid != value)
+ {
+ _configurationguid = value;
+ }
+ }
+ }
+
+ protected String _defaultrmlguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase default rml guid.
+ /// </summary>
+
+ [Column("DEFAULT_RML_GUID")]
+ [ForeignKey("DefaultRml")]
+
+ public String DefaultRmlGuid
+ {
+ get
+ {
+ return _defaultrmlguid;
+ }
+
+ set
+ {
+ if (_defaultrmlguid != value)
+ {
+ _defaultrmlguid = value;
+ }
+ }
+ }
+
+ protected String _loadedrmlguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase loaded rml guid.
+ /// </summary>
+
+ [Column("LOADED_RML_GUID")]
+
+ public String LoadedRmlGuid
+ {
+ get
+ {
+ return _loadedrmlguid;
+ }
+
+ set
+ {
+ if (_loadedrmlguid != value)
+ {
+ _loadedrmlguid = value;
+ }
+ }
+ }
+
+ protected String _targetjobtypes;
+
+ /// <summary>
+ /// Gets or sets the machinebase target job types.
+ /// </summary>
+
+ [Column("TARGET_JOB_TYPES")]
+
+ public String TargetJobTypes
+ {
+ get
+ {
+ return _targetjobtypes;
+ }
+
+ set
+ {
+ if (_targetjobtypes != value)
+ {
+ _targetjobtypes = value;
+
+ OnTargetJobTypesChanged(value);
+
+ }
+ }
+ }
+
+ protected String _targetcolorspacecodes;
+
+ /// <summary>
+ /// Gets or sets the machinebase target color space codes.
+ /// </summary>
+
+ [Column("TARGET_COLOR_SPACE_CODES")]
+
+ public String TargetColorSpaceCodes
+ {
+ get
+ {
+ return _targetcolorspacecodes;
+ }
+
+ set
+ {
+ if (_targetcolorspacecodes != value)
+ {
+ _targetcolorspacecodes = value;
+
+ OnTargetColorSpaceCodesChanged(value);
+
+ }
+ }
+ }
+
+ protected String _defaultcolorspaceguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase default color space guid.
+ /// </summary>
+
+ [Column("DEFAULT_COLOR_SPACE_GUID")]
+ [ForeignKey("DefaultColorSpace")]
+
+ public String DefaultColorSpaceGuid
+ {
+ get
+ {
+ return _defaultcolorspaceguid;
+ }
+
+ set
+ {
+ if (_defaultcolorspaceguid != value)
+ {
+ _defaultcolorspaceguid = value;
+ }
+ }
+ }
+
+ protected Double _defaultsegmentlength;
+
+ /// <summary>
+ /// Gets or sets the machinebase default segment length.
+ /// </summary>
+
+ [Column("DEFAULT_SEGMENT_LENGTH")]
+
+ public Double DefaultSegmentLength
+ {
+ get
+ {
+ return _defaultsegmentlength;
+ }
+
+ set
+ {
+ if (_defaultsegmentlength != value)
+ {
+ _defaultsegmentlength = value;
+
+ OnDefaultSegmentLengthChanged(value);
+
+ }
+ }
+ }
+
+ protected String _defaultspooltypeguid;
+
+ /// <summary>
+ /// Gets or sets the machinebase default spool type guid.
+ /// </summary>
+
+ [Column("DEFAULT_SPOOL_TYPE_GUID")]
+ [ForeignKey("DefaultSpoolType")]
+
+ public String DefaultSpoolTypeGuid
+ {
+ get
+ {
+ return _defaultspooltypeguid;
+ }
+
+ set
+ {
+ if (_defaultspooltypeguid != value)
+ {
+ _defaultspooltypeguid = value;
+ }
+ }
+ }
+
+ protected String _oskey;
+
+ /// <summary>
+ /// Gets or sets the machinebase os key.
+ /// </summary>
+
+ [Column("OS_KEY")]
+
+ public String OsKey
+ {
+ get
+ {
+ return _oskey;
+ }
+
+ set
+ {
+ if (_oskey != value)
+ {
+ _oskey = value;
+
+ OnOsKeyChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _autologin;
+
+ /// <summary>
+ /// Gets or sets the machinebase auto login.
+ /// </summary>
+
+ [Column("AUTO_LOGIN")]
+
+ public Boolean AutoLogin
+ {
+ get
+ {
+ return _autologin;
+ }
+
+ set
+ {
+ if (_autologin != value)
+ {
+ _autologin = value;
+
+ OnAutoLoginChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _autocheckforupdates;
+
+ /// <summary>
+ /// Gets or sets the machinebase auto check for updates.
+ /// </summary>
+
+ [Column("AUTO_CHECK_FOR_UPDATES")]
+
+ public Boolean AutoCheckForUpdates
+ {
+ get
+ {
+ return _autocheckforupdates;
+ }
+
+ set
+ {
+ if (_autocheckforupdates != value)
+ {
+ _autocheckforupdates = value;
+
+ OnAutoCheckForUpdatesChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _setupactivation;
+
+ /// <summary>
+ /// Gets or sets the machinebase setup activation.
+ /// </summary>
+
+ [Column("SETUP_ACTIVATION")]
+
+ public Boolean SetupActivation
+ {
+ get
+ {
+ return _setupactivation;
+ }
+
+ set
+ {
+ if (_setupactivation != value)
+ {
+ _setupactivation = value;
+
+ OnSetupActivationChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _setupremoteassistance;
+
+ /// <summary>
+ /// Gets or sets the machinebase setup remote assistance.
+ /// </summary>
+
+ [Column("SETUP_REMOTE_ASSISTANCE")]
+
+ public Boolean SetupRemoteAssistance
+ {
+ get
+ {
+ return _setupremoteassistance;
+ }
+
+ set
+ {
+ if (_setupremoteassistance != value)
+ {
+ _setupremoteassistance = value;
+
+ OnSetupRemoteAssistanceChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _setupuwf;
+
+ /// <summary>
+ /// Gets or sets the machinebase setup uwf.
+ /// </summary>
+
+ [Column("SETUP_UWF")]
+
+ public Boolean SetupUwf
+ {
+ get
+ {
+ return _setupuwf;
+ }
+
+ set
+ {
+ if (_setupuwf != value)
+ {
+ _setupuwf = value;
+
+ OnSetupUwfChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _setupfirmware;
+
+ /// <summary>
+ /// Gets or sets the machinebase setup firmware.
+ /// </summary>
+
+ [Column("SETUP_FIRMWARE")]
+
+ public Boolean SetupFirmware
+ {
+ get
+ {
+ return _setupfirmware;
+ }
+
+ set
+ {
+ if (_setupfirmware != value)
+ {
+ _setupfirmware = value;
+
+ OnSetupFirmwareChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _setupfpga;
+
+ /// <summary>
+ /// Gets or sets the machinebase setup fpga.
+ /// </summary>
+
+ [Column("SETUP_FPGA")]
+
+ public Boolean SetupFpga
+ {
+ get
+ {
+ return _setupfpga;
+ }
+
+ set
+ {
+ if (_setupfpga != value)
+ {
+ _setupfpga = value;
+
+ OnSetupFpgaChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _isdemo;
+
+ /// <summary>
+ /// Gets or sets the machinebase is demo.
+ /// </summary>
+
+ [Column("IS_DEMO")]
+
+ public Boolean IsDemo
+ {
+ get
+ {
+ return _isdemo;
+ }
+
+ set
+ {
+ if (_isdemo != value)
+ {
+ _isdemo = value;
+
+ OnIsDemoChanged(value);
+
+ }
+ }
+ }
+
+ protected SynchronizedObservableCollection<Cat> _cats;
+
+ /// <summary>
+ /// Gets or sets the machinebase cats.
+ /// </summary>
+
+ public virtual SynchronizedObservableCollection<Cat> Cats
+ {
+ get
+ {
+ return _cats;
+ }
+
+ set
+ {
+ if (_cats != value)
+ {
+ _cats = value;
+
+ OnCatsChanged(value);
+
+ }
+ }
+ }
+
+ protected ColorSpace _defaultcolorspace;
+
+ /// <summary>
+ /// Gets or sets the machinebase color spaces.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual ColorSpace DefaultColorSpace
+ {
+ get
+ {
+ return _defaultcolorspace;
+ }
+
+ set
+ {
+ if (_defaultcolorspace != value)
+ {
+ _defaultcolorspace = value;
+
+ OnDefaultColorSpaceChanged(value);
+
+ }
+ }
+ }
+
+ protected Configuration _configuration;
+
+ /// <summary>
+ /// Gets or sets the machinebase configuration.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual Configuration Configuration
+ {
+ get
+ {
+ return _configuration;
+ }
+
+ set
+ {
+ if (_configuration != value)
+ {
+ _configuration = value;
+
+ OnConfigurationChanged(value);
+
+ }
+ }
+ }
+
+ protected SynchronizedObservableCollection<Job> _jobs;
+
+ /// <summary>
+ /// Gets or sets the machinebase jobs.
+ /// </summary>
+
+ public virtual SynchronizedObservableCollection<Job> Jobs
+ {
+ get
+ {
+ return _jobs;
+ }
+
+ set
+ {
+ if (_jobs != value)
+ {
+ _jobs = value;
+
+ OnJobsChanged(value);
+
+ }
+ }
+ }
+
+ protected MachineVersion _machineversion;
+
+ /// <summary>
+ /// Gets or sets the machinebase machine versions.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual MachineVersion MachineVersion
+ {
+ get
+ {
+ return _machineversion;
+ }
+
+ set
+ {
+ if (_machineversion != value)
+ {
+ _machineversion = value;
+
+ OnMachineVersionChanged(value);
+
+ }
+ }
+ }
+
+ protected SynchronizedObservableCollection<MachinesEvent> _machinesevents;
+
+ /// <summary>
+ /// Gets or sets the machinebase machines events.
+ /// </summary>
+
+ public virtual SynchronizedObservableCollection<MachinesEvent> MachinesEvents
+ {
+ get
+ {
+ return _machinesevents;
+ }
+
+ set
+ {
+ if (_machinesevents != value)
+ {
+ _machinesevents = value;
+
+ OnMachinesEventsChanged(value);
+
+ }
+ }
+ }
+
+ protected Organization _organization;
+
+ /// <summary>
+ /// Gets or sets the machinebase organization.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual Organization Organization
+ {
+ get
+ {
+ return _organization;
+ }
+
+ set
+ {
+ if (_organization != value)
+ {
+ _organization = value;
+
+ OnOrganizationChanged(value);
+
+ }
+ }
+ }
+
+ protected Rml _defaultrml;
+
+ /// <summary>
+ /// Gets or sets the machinebase rml.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual Rml DefaultRml
+ {
+ get
+ {
+ return _defaultrml;
+ }
+
+ set
+ {
+ if (_defaultrml != value)
+ {
+ _defaultrml = value;
+
+ OnDefaultRmlChanged(value);
+
+ }
+ }
+ }
+
+ protected SpoolType _defaultspooltype;
+
+ /// <summary>
+ /// Gets or sets the machinebase spool types.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual SpoolType DefaultSpoolType
+ {
+ get
+ {
+ return _defaultspooltype;
+ }
+
+ set
+ {
+ if (_defaultspooltype != value)
+ {
+ _defaultspooltype = value;
+
+ OnDefaultSpoolTypeChanged(value);
+
+ }
+ }
+ }
+
+ protected SynchronizedObservableCollection<Spool> _spools;
+
+ /// <summary>
+ /// Gets or sets the machinebase spools.
+ /// </summary>
+
+ public virtual SynchronizedObservableCollection<Spool> Spools
+ {
+ get
+ {
+ return _spools;
+ }
+
+ set
+ {
+ if (_spools != value)
+ {
+ _spools = value;
+
+ OnSpoolsChanged(value);
+
+ }
+ }
+ }
+
+ /// <summary>
+ /// Called when the SerialNumber has changed.
+ /// </summary>
+ protected virtual void OnSerialNumberChanged(String serialnumber)
+ {
+ SerialNumberChanged?.Invoke(this, serialnumber);
+ RaisePropertyChanged(nameof(SerialNumber));
+ }
+
+ /// <summary>
+ /// Called when the Name has changed.
+ /// </summary>
+ protected virtual void OnNameChanged(String name)
+ {
+ NameChanged?.Invoke(this, name);
+ RaisePropertyChanged(nameof(Name));
+ }
+
+ /// <summary>
+ /// Called when the ProductionDate has changed.
+ /// </summary>
+ protected virtual void OnProductionDateChanged(DateTime productiondate)
+ {
+ ProductionDateChanged?.Invoke(this, productiondate);
+ RaisePropertyChanged(nameof(ProductionDate));
+ }
+
+ /// <summary>
+ /// Called when the TargetJobTypes has changed.
+ /// </summary>
+ protected virtual void OnTargetJobTypesChanged(String targetjobtypes)
+ {
+ TargetJobTypesChanged?.Invoke(this, targetjobtypes);
+ RaisePropertyChanged(nameof(TargetJobTypes));
+ }
+
+ /// <summary>
+ /// Called when the TargetColorSpaceCodes has changed.
+ /// </summary>
+ protected virtual void OnTargetColorSpaceCodesChanged(String targetcolorspacecodes)
+ {
+ TargetColorSpaceCodesChanged?.Invoke(this, targetcolorspacecodes);
+ RaisePropertyChanged(nameof(TargetColorSpaceCodes));
+ }
+
+ /// <summary>
+ /// Called when the DefaultSegmentLength has changed.
+ /// </summary>
+ protected virtual void OnDefaultSegmentLengthChanged(Double defaultsegmentlength)
+ {
+ DefaultSegmentLengthChanged?.Invoke(this, defaultsegmentlength);
+ RaisePropertyChanged(nameof(DefaultSegmentLength));
+ }
+
+ /// <summary>
+ /// Called when the OsKey has changed.
+ /// </summary>
+ protected virtual void OnOsKeyChanged(String oskey)
+ {
+ OsKeyChanged?.Invoke(this, oskey);
+ RaisePropertyChanged(nameof(OsKey));
+ }
+
+ /// <summary>
+ /// Called when the AutoLogin has changed.
+ /// </summary>
+ protected virtual void OnAutoLoginChanged(Boolean autologin)
+ {
+ AutoLoginChanged?.Invoke(this, autologin);
+ RaisePropertyChanged(nameof(AutoLogin));
+ }
+
+ /// <summary>
+ /// Called when the AutoCheckForUpdates has changed.
+ /// </summary>
+ protected virtual void OnAutoCheckForUpdatesChanged(Boolean autocheckforupdates)
+ {
+ AutoCheckForUpdatesChanged?.Invoke(this, autocheckforupdates);
+ RaisePropertyChanged(nameof(AutoCheckForUpdates));
+ }
+
+ /// <summary>
+ /// Called when the SetupActivation has changed.
+ /// </summary>
+ protected virtual void OnSetupActivationChanged(Boolean setupactivation)
+ {
+ SetupActivationChanged?.Invoke(this, setupactivation);
+ RaisePropertyChanged(nameof(SetupActivation));
+ }
+
+ /// <summary>
+ /// Called when the SetupRemoteAssistance has changed.
+ /// </summary>
+ protected virtual void OnSetupRemoteAssistanceChanged(Boolean setupremoteassistance)
+ {
+ SetupRemoteAssistanceChanged?.Invoke(this, setupremoteassistance);
+ RaisePropertyChanged(nameof(SetupRemoteAssistance));
+ }
+
+ /// <summary>
+ /// Called when the SetupUwf has changed.
+ /// </summary>
+ protected virtual void OnSetupUwfChanged(Boolean setupuwf)
+ {
+ SetupUwfChanged?.Invoke(this, setupuwf);
+ RaisePropertyChanged(nameof(SetupUwf));
+ }
+
+ /// <summary>
+ /// Called when the SetupFirmware has changed.
+ /// </summary>
+ protected virtual void OnSetupFirmwareChanged(Boolean setupfirmware)
+ {
+ SetupFirmwareChanged?.Invoke(this, setupfirmware);
+ RaisePropertyChanged(nameof(SetupFirmware));
+ }
+
+ /// <summary>
+ /// Called when the SetupFpga has changed.
+ /// </summary>
+ protected virtual void OnSetupFpgaChanged(Boolean setupfpga)
+ {
+ SetupFpgaChanged?.Invoke(this, setupfpga);
+ RaisePropertyChanged(nameof(SetupFpga));
+ }
+
+ /// <summary>
+ /// Called when the IsDemo has changed.
+ /// </summary>
+ protected virtual void OnIsDemoChanged(Boolean isdemo)
+ {
+ IsDemoChanged?.Invoke(this, isdemo);
+ RaisePropertyChanged(nameof(IsDemo));
+ }
+
+ /// <summary>
+ /// Called when the Cats has changed.
+ /// </summary>
+ protected virtual void OnCatsChanged(SynchronizedObservableCollection<Cat> cats)
+ {
+ CatsChanged?.Invoke(this, cats);
+ RaisePropertyChanged(nameof(Cats));
+ }
+
+ /// <summary>
+ /// Called when the DefaultColorSpace has changed.
+ /// </summary>
+ protected virtual void OnDefaultColorSpaceChanged(ColorSpace defaultcolorspace)
+ {
+ DefaultColorSpaceChanged?.Invoke(this, defaultcolorspace);
+ RaisePropertyChanged(nameof(DefaultColorSpace));
+ }
+
+ /// <summary>
+ /// Called when the Configuration has changed.
+ /// </summary>
+ protected virtual void OnConfigurationChanged(Configuration configuration)
+ {
+ ConfigurationChanged?.Invoke(this, configuration);
+ RaisePropertyChanged(nameof(Configuration));
+ }
+
+ /// <summary>
+ /// Called when the Jobs has changed.
+ /// </summary>
+ protected virtual void OnJobsChanged(SynchronizedObservableCollection<Job> jobs)
+ {
+ JobsChanged?.Invoke(this, jobs);
+ RaisePropertyChanged(nameof(Jobs));
+ }
+
+ /// <summary>
+ /// Called when the MachineVersion has changed.
+ /// </summary>
+ protected virtual void OnMachineVersionChanged(MachineVersion machineversion)
+ {
+ MachineVersionChanged?.Invoke(this, machineversion);
+ RaisePropertyChanged(nameof(MachineVersion));
+ }
+
+ /// <summary>
+ /// Called when the MachinesEvents has changed.
+ /// </summary>
+ protected virtual void OnMachinesEventsChanged(SynchronizedObservableCollection<MachinesEvent> machinesevents)
+ {
+ MachinesEventsChanged?.Invoke(this, machinesevents);
+ RaisePropertyChanged(nameof(MachinesEvents));
+ }
+
+ /// <summary>
+ /// Called when the Organization has changed.
+ /// </summary>
+ protected virtual void OnOrganizationChanged(Organization organization)
+ {
+ OrganizationChanged?.Invoke(this, organization);
+ RaisePropertyChanged(nameof(Organization));
+ }
+
+ /// <summary>
+ /// Called when the DefaultRml has changed.
+ /// </summary>
+ protected virtual void OnDefaultRmlChanged(Rml defaultrml)
+ {
+ DefaultRmlChanged?.Invoke(this, defaultrml);
+ RaisePropertyChanged(nameof(DefaultRml));
+ }
+
+ /// <summary>
+ /// Called when the DefaultSpoolType has changed.
+ /// </summary>
+ protected virtual void OnDefaultSpoolTypeChanged(SpoolType defaultspooltype)
+ {
+ DefaultSpoolTypeChanged?.Invoke(this, defaultspooltype);
+ RaisePropertyChanged(nameof(DefaultSpoolType));
+ }
+
+ /// <summary>
+ /// Called when the Spools has changed.
+ /// </summary>
+ protected virtual void OnSpoolsChanged(SynchronizedObservableCollection<Spool> spools)
+ {
+ SpoolsChanged?.Invoke(this, spools);
+ RaisePropertyChanged(nameof(Spools));
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="MachineBase" /> class.
+ /// </summary>
+ public MachineBase() : base()
+ {
+
+ Cats = new SynchronizedObservableCollection<Cat>();
+
+ Jobs = new SynchronizedObservableCollection<Job>();
+
+ MachinesEvents = new SynchronizedObservableCollection<MachinesEvent>();
+
+ Spools = new SynchronizedObservableCollection<Spool>();
+
+ }
+ }
+}