/// <summary> /// Initializes a new instance of the <see cref="Receipts"/> class. /// </summary> public Receipts() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="BadStart"/> class. /// </summary> public BadStart() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="Weights"/> class. /// </summary> public Weights() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="Nak"/> class. /// </summary> public Nak() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="Clock"/> class. /// </summary> public Clock() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="Wakeup"/> class. /// </summary> public Wakeup() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="Receipts"/> class. /// </summary> public Receipts() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="Sleep"/> class. /// </summary> public Sleep() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="CancelTicket"/> class. /// </summary> public CancelTicket() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="BadStart"/> class. /// </summary> public BadStart() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="CancelTicket"/> class. /// </summary> public CancelTicket() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="PlantStatus"/> class. /// </summary> public PlantStatus() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="DeleteMixes"/> class. /// </summary> public DeleteMixes() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="PlantStatus"/> class. /// </summary> public PlantStatus() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="CancelWeights"/> class. /// </summary> public CancelWeights() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; }
/// <summary> /// Initializes a new instance of the <see cref="DeleteMixes"/> class. /// </summary> public DeleteMixes() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; }
/// <summary> /// Initializes a new instance of the <see cref="DownloadMixes"/> class. /// </summary> public DownloadMixes() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; _lastStart = -1; }
/// <summary> /// Initializes a new instance of the <see cref="PrintTicket"/> class. /// </summary> public PrintTicket() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _inputs = null; _lastStart = -1; }
/// <summary> /// Initializes a new instance of the <see cref="DownloadMixes"/> class. /// </summary> public DownloadMixes() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; _lastStart = 0; _key = string.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="PrintTicket"/> class. /// </summary> public PrintTicket() { if (_isLoaded) { UnLoad(); } _isLoaded = false; _panelLibrary = null; _lastStart = 0; _key = string.Empty; _packet = string.Empty; }
/// <summary> /// Called when [unloaded]. /// </summary> /// <returns></returns> public bool UnLoad() { if (_isLoaded) { if (_panelLibrary != null) { _panelLibrary.PropertyChanged -= _panelLibrary_PropertyChanged; _panelLibrary = null; } } Events.DoLog(this, Name + " UnLoaded!"); _isLoaded = false; return true; }
/// <summary> /// Called when [load]. /// </summary> /// <returns></returns> public bool Load(PanelLibrary panelLibrary) { if (!_isLoaded) { _panelLibrary = panelLibrary; _panelLibrary.PropertyChanged += _panelLibrary_PropertyChanged; } Events.DoLog(this, Name + " Loaded!"); _isLoaded = true; return true; }
public Timer(PanelLibrary panelLibrary) { _panelLibrary = panelLibrary; _batchingTimer = new System.Threading.Timer(Callback, null, 1000, System.Threading.Timeout.Infinite); }
/// <summary> /// Called when [unloaded]. /// </summary> /// <returns></returns> public bool UnLoad() { if (_isLoaded) { if (_inputs != null) { _inputs.PropertyChanged -= _inputs_PropertyChanged; _inputs = null; } } Events.DoLog(this, Name + " UnLoaded!"); _isLoaded = false; return true; }
/// <summary> /// Called when [load]. /// </summary> /// <returns></returns> public bool Load(PanelLibrary inputs) { if (!_isLoaded) { _inputs = inputs; _inputs.PropertyChanged += _inputs_PropertyChanged; } Events.DoLog(this, Name + " Loaded!"); _isLoaded = true; return true; }