Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Receipts"/> class.
 /// </summary>
 public Receipts()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BadStart"/> class.
 /// </summary>
 public BadStart()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Weights"/> class.
 /// </summary>
 public Weights()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Nak"/> class.
 /// </summary>
 public Nak()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Clock"/> class.
 /// </summary>
 public Clock()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wakeup"/> class.
 /// </summary>
 public Wakeup()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Receipts"/> class.
 /// </summary>
 public Receipts()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #8
0
 /// <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;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BadStart"/> class.
 /// </summary>
 public BadStart()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CancelTicket"/> class.
 /// </summary>
 public CancelTicket()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlantStatus"/> class.
 /// </summary>
 public PlantStatus()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteMixes"/> class.
 /// </summary>
 public DeleteMixes()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Beispiel #14
0
 /// <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;
 }
Beispiel #16
0
 /// <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;
 }
Beispiel #18
0
 /// <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;
 }
Beispiel #20
0
 /// <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;
 }
Beispiel #21
0
 /// <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;
 }
Beispiel #22
0
 /// <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;
 }
Beispiel #23
0
 public Timer(PanelLibrary panelLibrary)
 {
     _panelLibrary = panelLibrary;
     _batchingTimer = new System.Threading.Timer(Callback, null, 1000, System.Threading.Timeout.Infinite);
 }
Beispiel #24
0
 /// <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;
 }
Beispiel #25
0
 /// <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;
 }