//------------------------------------------------------------------------------
//
// 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("MACHINES")]
public abstract class MachineBase : ObservableEntity
{
public event EventHandler SerialNumberChanged;
public event EventHandler NameChanged;
public event EventHandler ProductionDateChanged;
public event EventHandler TargetJobTypesChanged;
public event EventHandler TargetColorSpaceCodesChanged;
public event EventHandler DefaultSegmentLengthChanged;
public event EventHandler OsKeyChanged;
public event EventHandler AutoLoginChanged;
public event EventHandler AutoCheckForUpdatesChanged;
public event EventHandler SetupActivationChanged;
public event EventHandler SetupRemoteAssistanceChanged;
public event EventHandler SetupUwfChanged;
public event EventHandler SetupFirmwareChanged;
public event EventHandler SetupFpgaChanged;
public event EventHandler IsDemoChanged;
public event EventHandler SuspendVersionUpdateChanged;
public event EventHandler ForceVersionUpdateChanged;
public event EventHandler PerformSchemaUpdateOnDataUpdateChanged;
public event EventHandler DeviceComPortChanged;
public event EventHandler IsDeviceRegisteredChanged;
public event EventHandler DeviceIdChanged;
public event EventHandler DeviceNameChanged;
public event EventHandler HeadTypeChanged;
public event EventHandler ActivationKeyChanged;
public event EventHandler LightInksInstalledChanged;
public event EventHandler BtsrInstalledChanged;
public event EventHandler VersionTagChanged;
public event EventHandler MachineTypeChanged;
public event EventHandler AllowSmsNotificationsChanged;
public event EventHandler> CatsChanged;
public event EventHandler> ColorProcessParametersChanged;
public event EventHandler ConfigurationChanged;
public event EventHandler> DataStoreItemsChanged;
public event EventHandler> JobsChanged;
public event EventHandler MachineVersionChanged;
public event EventHandler> MachinesEventsChanged;
public event EventHandler OrganizationChanged;
public event EventHandler> RmlExtensionColorCalibrationsChanged;
public event EventHandler> RmlExtensionColorShadesChanged;
public event EventHandler> RmlExtensionTestResultsChanged;
public event EventHandler> SpoolsChanged;
protected String _serialnumber;
///
/// Gets or sets the machinebase serial number.
///
[Column("SERIAL_NUMBER")]
public String SerialNumber
{
get
{
return _serialnumber;
}
set
{
if (_serialnumber != value)
{
_serialnumber = value;
OnSerialNumberChanged(value);
}
}
}
protected String _name;
///
/// Gets or sets the machinebase name.
///
[Column("NAME")]
public String Name
{
get
{
return _name;
}
set
{
if (_name != value)
{
_name = value;
OnNameChanged(value);
}
}
}
protected DateTime _productiondate;
///
/// Gets or sets the machinebase production date.
///
[Column("PRODUCTION_DATE")]
public DateTime ProductionDate
{
get
{
return _productiondate;
}
set
{
if (_productiondate != value)
{
_productiondate = value;
OnProductionDateChanged(value);
}
}
}
protected String _organizationguid;
///
/// Gets or sets the machinebase organization guid.
///
[Column("ORGANIZATION_GUID")]
[ForeignKey("Organization")]
public String OrganizationGuid
{
get
{
return _organizationguid;
}
set
{
if (_organizationguid != value)
{
_organizationguid = value;
}
}
}
protected String _siteguid;
///
/// Gets or sets the machinebase site guid.
///
[Column("SITE_GUID")]
public String SiteGuid
{
get
{
return _siteguid;
}
set
{
if (_siteguid != value)
{
_siteguid = value;
}
}
}
protected String _machineversionguid;
///
/// Gets or sets the machinebase machine version guid.
///
[Column("MACHINE_VERSION_GUID")]
[ForeignKey("MachineVersion")]
public String MachineVersionGuid
{
get
{
return _machineversionguid;
}
set
{
if (_machineversionguid != value)
{
_machineversionguid = value;
}
}
}
protected String _configurationguid;
///
/// Gets or sets the machinebase configuration guid.
///
[Column("CONFIGURATION_GUID")]
[ForeignKey("Configuration")]
public String ConfigurationGuid
{
get
{
return _configurationguid;
}
set
{
if (_configurationguid != value)
{
_configurationguid = value;
}
}
}
protected String _defaultrmlguid;
///
/// Gets or sets the machinebase default rml guid.
///
[Column("DEFAULT_RML_GUID")]
public String DefaultRmlGuid
{
get
{
return _defaultrmlguid;
}
set
{
if (_defaultrmlguid != value)
{
_defaultrmlguid = value;
}
}
}
protected String _loadedrmlguid;
///
/// Gets or sets the machinebase loaded rml guid.
///
[Column("LOADED_RML_GUID")]
public String LoadedRmlGuid
{
get
{
return _loadedrmlguid;
}
set
{
if (_loadedrmlguid != value)
{
_loadedrmlguid = value;
}
}
}
protected String _targetjobtypes;
///
/// Gets or sets the machinebase target job types.
///
[Column("TARGET_JOB_TYPES")]
public String TargetJobTypes
{
get
{
return _targetjobtypes;
}
set
{
if (_targetjobtypes != value)
{
_targetjobtypes = value;
OnTargetJobTypesChanged(value);
}
}
}
protected String _targetcolorspacecodes;
///
/// Gets or sets the machinebase target color space codes.
///
[Column("TARGET_COLOR_SPACE_CODES")]
public String TargetColorSpaceCodes
{
get
{
return _targetcolorspacecodes;
}
set
{
if (_targetcolorspacecodes != value)
{
_targetcolorspacecodes = value;
OnTargetColorSpaceCodesChanged(value);
}
}
}
protected String _defaultcolorspaceguid;
///
/// Gets or sets the machinebase default color space guid.
///
[Column("DEFAULT_COLOR_SPACE_GUID")]
public String DefaultColorSpaceGuid
{
get
{
return _defaultcolorspaceguid;
}
set
{
if (_defaultcolorspaceguid != value)
{
_defaultcolorspaceguid = value;
}
}
}
protected Double _defaultsegmentlength;
///
/// Gets or sets the machinebase default segment length.
///
[Column("DEFAULT_SEGMENT_LENGTH")]
public Double DefaultSegmentLength
{
get
{
return _defaultsegmentlength;
}
set
{
if (_defaultsegmentlength != value)
{
_defaultsegmentlength = value;
OnDefaultSegmentLengthChanged(value);
}
}
}
protected String _defaultspooltypeguid;
///
/// Gets or sets the machinebase default spool type guid.
///
[Column("DEFAULT_SPOOL_TYPE_GUID")]
public String DefaultSpoolTypeGuid
{
get
{
return _defaultspooltypeguid;
}
set
{
if (_defaultspooltypeguid != value)
{
_defaultspooltypeguid = value;
}
}
}
protected String _oskey;
///
/// Gets or sets the machinebase os key.
///
[Column("OS_KEY")]
public String OsKey
{
get
{
return _oskey;
}
set
{
if (_oskey != value)
{
_oskey = value;
OnOsKeyChanged(value);
}
}
}
protected Boolean _autologin;
///
/// Gets or sets the machinebase auto login.
///
[Column("AUTO_LOGIN")]
public Boolean AutoLogin
{
get
{
return _autologin;
}
set
{
if (_autologin != value)
{
_autologin = value;
OnAutoLoginChanged(value);
}
}
}
protected Boolean _autocheckforupdates;
///
/// Gets or sets the machinebase auto check for updates.
///
[Column("AUTO_CHECK_FOR_UPDATES")]
public Boolean AutoCheckForUpdates
{
get
{
return _autocheckforupdates;
}
set
{
if (_autocheckforupdates != value)
{
_autocheckforupdates = value;
OnAutoCheckForUpdatesChanged(value);
}
}
}
protected Boolean _setupactivation;
///
/// Gets or sets the machinebase setup activation.
///
[Column("SETUP_ACTIVATION")]
public Boolean SetupActivation
{
get
{
return _setupactivation;
}
set
{
if (_setupactivation != value)
{
_setupactivation = value;
OnSetupActivationChanged(value);
}
}
}
protected Boolean _setupremoteassistance;
///
/// Gets or sets the machinebase setup remote assistance.
///
[Column("SETUP_REMOTE_ASSISTANCE")]
public Boolean SetupRemoteAssistance
{
get
{
return _setupremoteassistance;
}
set
{
if (_setupremoteassistance != value)
{
_setupremoteassistance = value;
OnSetupRemoteAssistanceChanged(value);
}
}
}
protected Boolean _setupuwf;
///
/// Gets or sets the machinebase setup uwf.
///
[Column("SETUP_UWF")]
public Boolean SetupUwf
{
get
{
return _setupuwf;
}
set
{
if (_setupuwf != value)
{
_setupuwf = value;
OnSetupUwfChanged(value);
}
}
}
protected Boolean _setupfirmware;
///
/// Gets or sets the machinebase setup firmware.
///
[Column("SETUP_FIRMWARE")]
public Boolean SetupFirmware
{
get
{
return _setupfirmware;
}
set
{
if (_setupfirmware != value)
{
_setupfirmware = value;
OnSetupFirmwareChanged(value);
}
}
}
protected Boolean _setupfpga;
///
/// Gets or sets the machinebase setup fpga.
///
[Column("SETUP_FPGA")]
public Boolean SetupFpga
{
get
{
return _setupfpga;
}
set
{
if (_setupfpga != value)
{
_setupfpga = value;
OnSetupFpgaChanged(value);
}
}
}
protected Boolean _isdemo;
///
/// Gets or sets the machinebase is demo.
///
[Column("IS_DEMO")]
public Boolean IsDemo
{
get
{
return _isdemo;
}
set
{
if (_isdemo != value)
{
_isdemo = value;
OnIsDemoChanged(value);
}
}
}
protected Boolean _suspendversionupdate;
///
/// Gets or sets the machinebase suspend version update.
///
[Column("SUSPEND_VERSION_UPDATE")]
public Boolean SuspendVersionUpdate
{
get
{
return _suspendversionupdate;
}
set
{
if (_suspendversionupdate != value)
{
_suspendversionupdate = value;
OnSuspendVersionUpdateChanged(value);
}
}
}
protected Boolean _forceversionupdate;
///
/// Gets or sets the machinebase force version update.
///
[Column("FORCE_VERSION_UPDATE")]
public Boolean ForceVersionUpdate
{
get
{
return _forceversionupdate;
}
set
{
if (_forceversionupdate != value)
{
_forceversionupdate = value;
OnForceVersionUpdateChanged(value);
}
}
}
protected Boolean _performschemaupdateondataupdate;
///
/// Gets or sets the machinebase perform schema update on data update.
///
[Column("PERFORM_SCHEMA_UPDATE_ON_DATA_UPDATE")]
public Boolean PerformSchemaUpdateOnDataUpdate
{
get
{
return _performschemaupdateondataupdate;
}
set
{
if (_performschemaupdateondataupdate != value)
{
_performschemaupdateondataupdate = value;
OnPerformSchemaUpdateOnDataUpdateChanged(value);
}
}
}
protected String _devicecomport;
///
/// Gets or sets the machinebase device com port.
///
[Column("DEVICE_COM_PORT")]
public String DeviceComPort
{
get
{
return _devicecomport;
}
set
{
if (_devicecomport != value)
{
_devicecomport = value;
OnDeviceComPortChanged(value);
}
}
}
protected Boolean _isdeviceregistered;
///
/// Gets or sets the machinebase is device registered.
///
[Column("IS_DEVICE_REGISTERED")]
public Boolean IsDeviceRegistered
{
get
{
return _isdeviceregistered;
}
set
{
if (_isdeviceregistered != value)
{
_isdeviceregistered = value;
OnIsDeviceRegisteredChanged(value);
}
}
}
protected String _deviceid;
///
/// Gets or sets the machinebase device id.
///
[Column("DEVICE_ID")]
public String DeviceId
{
get
{
return _deviceid;
}
set
{
if (_deviceid != value)
{
_deviceid = value;
OnDeviceIdChanged(value);
}
}
}
protected String _devicename;
///
/// Gets or sets the machinebase device name.
///
[Column("DEVICE_NAME")]
public String DeviceName
{
get
{
return _devicename;
}
set
{
if (_devicename != value)
{
_devicename = value;
OnDeviceNameChanged(value);
}
}
}
protected Int32 _headtype;
///
/// Gets or sets the machinebase head type.
///
[Column("HEAD_TYPE")]
public Int32 HeadType
{
get
{
return _headtype;
}
set
{
if (_headtype != value)
{
_headtype = value;
OnHeadTypeChanged(value);
}
}
}
protected String _activationkey;
///
/// Gets or sets the machinebase activation key.
///
[Column("ACTIVATION_KEY")]
public String ActivationKey
{
get
{
return _activationkey;
}
set
{
if (_activationkey != value)
{
_activationkey = value;
OnActivationKeyChanged(value);
}
}
}
protected Boolean _lightinksinstalled;
///
/// Gets or sets the machinebase light inks installed.
///
[Column("LIGHT_INKS_INSTALLED")]
public Boolean LightInksInstalled
{
get
{
return _lightinksinstalled;
}
set
{
if (_lightinksinstalled != value)
{
_lightinksinstalled = value;
OnLightInksInstalledChanged(value);
}
}
}
protected Boolean _btsrinstalled;
///
/// Gets or sets the machinebase btsr installed.
///
[Column("BTSR_INSTALLED")]
public Boolean BtsrInstalled
{
get
{
return _btsrinstalled;
}
set
{
if (_btsrinstalled != value)
{
_btsrinstalled = value;
OnBtsrInstalledChanged(value);
}
}
}
protected String _versiontag;
///
/// Gets or sets the machinebase version tag.
///
[Column("VERSION_TAG")]
public String VersionTag
{
get
{
return _versiontag;
}
set
{
if (_versiontag != value)
{
_versiontag = value;
OnVersionTagChanged(value);
}
}
}
protected Int32 _machinetype;
///
/// Gets or sets the machinebase machine type.
///
[Column("MACHINE_TYPE")]
public Int32 MachineType
{
get
{
return _machinetype;
}
set
{
if (_machinetype != value)
{
_machinetype = value;
OnMachineTypeChanged(value);
}
}
}
protected Boolean _allowsmsnotifications;
///
/// Gets or sets the machinebase allow sms notifications.
///
[Column("ALLOW_SMS_NOTIFICATIONS")]
public Boolean AllowSmsNotifications
{
get
{
return _allowsmsnotifications;
}
set
{
if (_allowsmsnotifications != value)
{
_allowsmsnotifications = value;
OnAllowSmsNotificationsChanged(value);
}
}
}
protected SynchronizedObservableCollection _cats;
///
/// Gets or sets the machinebase cats.
///
public virtual SynchronizedObservableCollection Cats
{
get
{
return _cats;
}
set
{
if (_cats != value)
{
_cats = value;
OnCatsChanged(value);
}
}
}
protected SynchronizedObservableCollection _colorprocessparameters;
///
/// Gets or sets the machinebase color process parameters.
///
public virtual SynchronizedObservableCollection ColorProcessParameters
{
get
{
return _colorprocessparameters;
}
set
{
if (_colorprocessparameters != value)
{
_colorprocessparameters = value;
OnColorProcessParametersChanged(value);
}
}
}
protected Configuration _configuration;
///
/// Gets or sets the machinebase configuration.
///
[XmlIgnore]
[JsonIgnore]
public virtual Configuration Configuration
{
get
{
return _configuration;
}
set
{
if (_configuration != value)
{
_configuration = value;
if (Configuration != null)
{
ConfigurationGuid = Configuration.Guid;
}
OnConfigurationChanged(value);
}
}
}
protected SynchronizedObservableCollection _datastoreitems;
///
/// Gets or sets the machinebase data store items.
///
public virtual SynchronizedObservableCollection DataStoreItems
{
get
{
return _datastoreitems;
}
set
{
if (_datastoreitems != value)
{
_datastoreitems = value;
OnDataStoreItemsChanged(value);
}
}
}
protected SynchronizedObservableCollection _jobs;
///
/// Gets or sets the machinebase jobs.
///
public virtual SynchronizedObservableCollection Jobs
{
get
{
return _jobs;
}
set
{
if (_jobs != value)
{
_jobs = value;
OnJobsChanged(value);
}
}
}
protected MachineVersion _machineversion;
///
/// Gets or sets the machinebase machine versions.
///
[XmlIgnore]
[JsonIgnore]
public virtual MachineVersion MachineVersion
{
get
{
return _machineversion;
}
set
{
if (_machineversion != value)
{
_machineversion = value;
if (MachineVersion != null)
{
MachineVersionGuid = MachineVersion.Guid;
}
OnMachineVersionChanged(value);
}
}
}
protected SynchronizedObservableCollection _machinesevents;
///
/// Gets or sets the machinebase machines events.
///
public virtual SynchronizedObservableCollection MachinesEvents
{
get
{
return _machinesevents;
}
set
{
if (_machinesevents != value)
{
_machinesevents = value;
OnMachinesEventsChanged(value);
}
}
}
protected Organization _organization;
///
/// Gets or sets the machinebase organization.
///
[XmlIgnore]
[JsonIgnore]
public virtual Organization Organization
{
get
{
return _organization;
}
set
{
if (_organization != value)
{
_organization = value;
if (Organization != null)
{
OrganizationGuid = Organization.Guid;
}
OnOrganizationChanged(value);
}
}
}
protected SynchronizedObservableCollection _rmlextensioncolorcalibrations;
///
/// Gets or sets the machinebase rml extension color calibrations.
///
public virtual SynchronizedObservableCollection RmlExtensionColorCalibrations
{
get
{
return _rmlextensioncolorcalibrations;
}
set
{
if (_rmlextensioncolorcalibrations != value)
{
_rmlextensioncolorcalibrations = value;
OnRmlExtensionColorCalibrationsChanged(value);
}
}
}
protected SynchronizedObservableCollection _rmlextensioncolorshades;
///
/// Gets or sets the machinebase rml extension color shades.
///
public virtual SynchronizedObservableCollection RmlExtensionColorShades
{
get
{
return _rmlextensioncolorshades;
}
set
{
if (_rmlextensioncolorshades != value)
{
_rmlextensioncolorshades = value;
OnRmlExtensionColorShadesChanged(value);
}
}
}
protected SynchronizedObservableCollection _rmlextensiontestresults;
///
/// Gets or sets the machinebase rml extension test results.
///
public virtual SynchronizedObservableCollection RmlExtensionTestResults
{
get
{
return _rmlextensiontestresults;
}
set
{
if (_rmlextensiontestresults != value)
{
_rmlextensiontestresults = value;
OnRmlExtensionTestResultsChanged(value);
}
}
}
protected SynchronizedObservableCollection _spools;
///
/// Gets or sets the machinebase spools.
///
public virtual SynchronizedObservableCollection Spools
{
get
{
return _spools;
}
set
{
if (_spools != value)
{
_spools = value;
OnSpoolsChanged(value);
}
}
}
///
/// Called when the SerialNumber has changed.
///
protected virtual void OnSerialNumberChanged(String serialnumber)
{
SerialNumberChanged?.Invoke(this, serialnumber);
RaisePropertyChanged(nameof(SerialNumber));
}
///
/// Called when the Name has changed.
///
protected virtual void OnNameChanged(String name)
{
NameChanged?.Invoke(this, name);
RaisePropertyChanged(nameof(Name));
}
///
/// Called when the ProductionDate has changed.
///
protected virtual void OnProductionDateChanged(DateTime productiondate)
{
ProductionDateChanged?.Invoke(this, productiondate);
RaisePropertyChanged(nameof(ProductionDate));
}
///
/// Called when the TargetJobTypes has changed.
///
protected virtual void OnTargetJobTypesChanged(String targetjobtypes)
{
TargetJobTypesChanged?.Invoke(this, targetjobtypes);
RaisePropertyChanged(nameof(TargetJobTypes));
}
///
/// Called when the TargetColorSpaceCodes has changed.
///
protected virtual void OnTargetColorSpaceCodesChanged(String targetcolorspacecodes)
{
TargetColorSpaceCodesChanged?.Invoke(this, targetcolorspacecodes);
RaisePropertyChanged(nameof(TargetColorSpaceCodes));
}
///
/// Called when the DefaultSegmentLength has changed.
///
protected virtual void OnDefaultSegmentLengthChanged(Double defaultsegmentlength)
{
DefaultSegmentLengthChanged?.Invoke(this, defaultsegmentlength);
RaisePropertyChanged(nameof(DefaultSegmentLength));
}
///
/// Called when the OsKey has changed.
///
protected virtual void OnOsKeyChanged(String oskey)
{
OsKeyChanged?.Invoke(this, oskey);
RaisePropertyChanged(nameof(OsKey));
}
///
/// Called when the AutoLogin has changed.
///
protected virtual void OnAutoLoginChanged(Boolean autologin)
{
AutoLoginChanged?.Invoke(this, autologin);
RaisePropertyChanged(nameof(AutoLogin));
}
///
/// Called when the AutoCheckForUpdates has changed.
///
protected virtual void OnAutoCheckForUpdatesChanged(Boolean autocheckforupdates)
{
AutoCheckForUpdatesChanged?.Invoke(this, autocheckforupdates);
RaisePropertyChanged(nameof(AutoCheckForUpdates));
}
///
/// Called when the SetupActivation has changed.
///
protected virtual void OnSetupActivationChanged(Boolean setupactivation)
{
SetupActivationChanged?.Invoke(this, setupactivation);
RaisePropertyChanged(nameof(SetupActivation));
}
///
/// Called when the SetupRemoteAssistance has changed.
///
protected virtual void OnSetupRemoteAssistanceChanged(Boolean setupremoteassistance)
{
SetupRemoteAssistanceChanged?.Invoke(this, setupremoteassistance);
RaisePropertyChanged(nameof(SetupRemoteAssistance));
}
///
/// Called when the SetupUwf has changed.
///
protected virtual void OnSetupUwfChanged(Boolean setupuwf)
{
SetupUwfChanged?.Invoke(this, setupuwf);
RaisePropertyChanged(nameof(SetupUwf));
}
///
/// Called when the SetupFirmware has changed.
///
protected virtual void OnSetupFirmwareChanged(Boolean setupfirmware)
{
SetupFirmwareChanged?.Invoke(this, setupfirmware);
RaisePropertyChanged(nameof(SetupFirmware));
}
///
/// Called when the SetupFpga has changed.
///
protected virtual void OnSetupFpgaChanged(Boolean setupfpga)
{
SetupFpgaChanged?.Invoke(this, setupfpga);
RaisePropertyChanged(nameof(SetupFpga));
}
///
/// Called when the IsDemo has changed.
///
protected virtual void OnIsDemoChanged(Boolean isdemo)
{
IsDemoChanged?.Invoke(this, isdemo);
RaisePropertyChanged(nameof(IsDemo));
}
///
/// Called when the SuspendVersionUpdate has changed.
///
protected virtual void OnSuspendVersionUpdateChanged(Boolean suspendversionupdate)
{
SuspendVersionUpdateChanged?.Invoke(this, suspendversionupdate);
RaisePropertyChanged(nameof(SuspendVersionUpdate));
}
///
/// Called when the ForceVersionUpdate has changed.
///
protected virtual void OnForceVersionUpdateChanged(Boolean forceversionupdate)
{
ForceVersionUpdateChanged?.Invoke(this, forceversionupdate);
RaisePropertyChanged(nameof(ForceVersionUpdate));
}
///
/// Called when the PerformSchemaUpdateOnDataUpdate has changed.
///
protected virtual void OnPerformSchemaUpdateOnDataUpdateChanged(Boolean performschemaupdateondataupdate)
{
PerformSchemaUpdateOnDataUpdateChanged?.Invoke(this, performschemaupdateondataupdate);
RaisePropertyChanged(nameof(PerformSchemaUpdateOnDataUpdate));
}
///
/// Called when the DeviceComPort has changed.
///
protected virtual void OnDeviceComPortChanged(String devicecomport)
{
DeviceComPortChanged?.Invoke(this, devicecomport);
RaisePropertyChanged(nameof(DeviceComPort));
}
///
/// Called when the IsDeviceRegistered has changed.
///
protected virtual void OnIsDeviceRegisteredChanged(Boolean isdeviceregistered)
{
IsDeviceRegisteredChanged?.Invoke(this, isdeviceregistered);
RaisePropertyChanged(nameof(IsDeviceRegistered));
}
///
/// Called when the DeviceId has changed.
///
protected virtual void OnDeviceIdChanged(String deviceid)
{
DeviceIdChanged?.Invoke(this, deviceid);
RaisePropertyChanged(nameof(DeviceId));
}
///
/// Called when the DeviceName has changed.
///
protected virtual void OnDeviceNameChanged(String devicename)
{
DeviceNameChanged?.Invoke(this, devicename);
RaisePropertyChanged(nameof(DeviceName));
}
///
/// Called when the HeadType has changed.
///
protected virtual void OnHeadTypeChanged(Int32 headtype)
{
HeadTypeChanged?.Invoke(this, headtype);
RaisePropertyChanged(nameof(HeadType));
}
///
/// Called when the ActivationKey has changed.
///
protected virtual void OnActivationKeyChanged(String activationkey)
{
ActivationKeyChanged?.Invoke(this, activationkey);
RaisePropertyChanged(nameof(ActivationKey));
}
///
/// Called when the LightInksInstalled has changed.
///
protected virtual void OnLightInksInstalledChanged(Boolean lightinksinstalled)
{
LightInksInstalledChanged?.Invoke(this, lightinksinstalled);
RaisePropertyChanged(nameof(LightInksInstalled));
}
///
/// Called when the BtsrInstalled has changed.
///
protected virtual void OnBtsrInstalledChanged(Boolean btsrinstalled)
{
BtsrInstalledChanged?.Invoke(this, btsrinstalled);
RaisePropertyChanged(nameof(BtsrInstalled));
}
///
/// Called when the VersionTag has changed.
///
protected virtual void OnVersionTagChanged(String versiontag)
{
VersionTagChanged?.Invoke(this, versiontag);
RaisePropertyChanged(nameof(VersionTag));
}
///
/// Called when the MachineType has changed.
///
protected virtual void OnMachineTypeChanged(Int32 machinetype)
{
MachineTypeChanged?.Invoke(this, machinetype);
RaisePropertyChanged(nameof(MachineType));
}
///
/// Called when the AllowSmsNotifications has changed.
///
protected virtual void OnAllowSmsNotificationsChanged(Boolean allowsmsnotifications)
{
AllowSmsNotificationsChanged?.Invoke(this, allowsmsnotifications);
RaisePropertyChanged(nameof(AllowSmsNotifications));
}
///
/// Called when the Cats has changed.
///
protected virtual void OnCatsChanged(SynchronizedObservableCollection cats)
{
CatsChanged?.Invoke(this, cats);
RaisePropertyChanged(nameof(Cats));
}
///
/// Called when the ColorProcessParameters has changed.
///
protected virtual void OnColorProcessParametersChanged(SynchronizedObservableCollection colorprocessparameters)
{
ColorProcessParametersChanged?.Invoke(this, colorprocessparameters);
RaisePropertyChanged(nameof(ColorProcessParameters));
}
///
/// Called when the Configuration has changed.
///
protected virtual void OnConfigurationChanged(Configuration configuration)
{
ConfigurationChanged?.Invoke(this, configuration);
RaisePropertyChanged(nameof(Configuration));
}
///
/// Called when the DataStoreItems has changed.
///
protected virtual void OnDataStoreItemsChanged(SynchronizedObservableCollection datastoreitems)
{
DataStoreItemsChanged?.Invoke(this, datastoreitems);
RaisePropertyChanged(nameof(DataStoreItems));
}
///
/// Called when the Jobs has changed.
///
protected virtual void OnJobsChanged(SynchronizedObservableCollection jobs)
{
JobsChanged?.Invoke(this, jobs);
RaisePropertyChanged(nameof(Jobs));
}
///
/// Called when the MachineVersion has changed.
///
protected virtual void OnMachineVersionChanged(MachineVersion machineversion)
{
MachineVersionChanged?.Invoke(this, machineversion);
RaisePropertyChanged(nameof(MachineVersion));
}
///
/// Called when the MachinesEvents has changed.
///
protected virtual void OnMachinesEventsChanged(SynchronizedObservableCollection machinesevents)
{
MachinesEventsChanged?.Invoke(this, machinesevents);
RaisePropertyChanged(nameof(MachinesEvents));
}
///
/// Called when the Organization has changed.
///
protected virtual void OnOrganizationChanged(Organization organization)
{
OrganizationChanged?.Invoke(this, organization);
RaisePropertyChanged(nameof(Organization));
}
///
/// Called when the RmlExtensionColorCalibrations has changed.
///
protected virtual void OnRmlExtensionColorCalibrationsChanged(SynchronizedObservableCollection rmlextensioncolorcalibrations)
{
RmlExtensionColorCalibrationsChanged?.Invoke(this, rmlextensioncolorcalibrations);
RaisePropertyChanged(nameof(RmlExtensionColorCalibrations));
}
///
/// Called when the RmlExtensionColorShades has changed.
///
protected virtual void OnRmlExtensionColorShadesChanged(SynchronizedObservableCollection rmlextensioncolorshades)
{
RmlExtensionColorShadesChanged?.Invoke(this, rmlextensioncolorshades);
RaisePropertyChanged(nameof(RmlExtensionColorShades));
}
///
/// Called when the RmlExtensionTestResults has changed.
///
protected virtual void OnRmlExtensionTestResultsChanged(SynchronizedObservableCollection rmlextensiontestresults)
{
RmlExtensionTestResultsChanged?.Invoke(this, rmlextensiontestresults);
RaisePropertyChanged(nameof(RmlExtensionTestResults));
}
///
/// Called when the Spools has changed.
///
protected virtual void OnSpoolsChanged(SynchronizedObservableCollection spools)
{
SpoolsChanged?.Invoke(this, spools);
RaisePropertyChanged(nameof(Spools));
}
///
/// Initializes a new instance of the class.
///
public MachineBase() : base()
{
Cats = new SynchronizedObservableCollection();
ColorProcessParameters = new SynchronizedObservableCollection();
DataStoreItems = new SynchronizedObservableCollection();
Jobs = new SynchronizedObservableCollection();
MachinesEvents = new SynchronizedObservableCollection();
RmlExtensionColorCalibrations = new SynchronizedObservableCollection();
RmlExtensionColorShades = new SynchronizedObservableCollection();
RmlExtensionTestResults = new SynchronizedObservableCollection();
Spools = new SynchronizedObservableCollection();
}
}
}