Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Receipts"/> class.
 /// </summary>
 public Receipts()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BadStart"/> class.
 /// </summary>
 public BadStart()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Weights"/> class.
 /// </summary>
 public Weights()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Nak"/> class.
 /// </summary>
 public Nak()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Clock"/> class.
 /// </summary>
 public Clock()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wakeup"/> class.
 /// </summary>
 public Wakeup()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Receipts"/> class.
 /// </summary>
 public Receipts()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sleep"/> class.
 /// </summary>
 public Sleep()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CancelTicket"/> class.
 /// </summary>
 public CancelTicket()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BadStart"/> class.
 /// </summary>
 public BadStart()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CancelTicket"/> class.
 /// </summary>
 public CancelTicket()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlantStatus"/> class.
 /// </summary>
 public PlantStatus()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteMixes"/> class.
 /// </summary>
 public DeleteMixes()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlantStatus"/> class.
 /// </summary>
 public PlantStatus()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CancelWeights"/> class.
 /// </summary>
 public CancelWeights()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _panelLibrary = null;
 }
Пример #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteMixes"/> class.
 /// </summary>
 public DeleteMixes()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
 }
Пример #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloadMixes"/> class.
 /// </summary>
 public DownloadMixes()
 {
     if (_isLoaded)
     {
         UnLoad();
     }
     _isLoaded = false;
     _inputs = null;
     _lastStart = -1;
 }
Пример #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;
 }
Пример #19
0
 /// <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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #23
0
 public Timer(PanelLibrary panelLibrary)
 {
     _panelLibrary = panelLibrary;
     _batchingTimer = new System.Threading.Timer(Callback, null, 1000, System.Threading.Timeout.Infinite);
 }
Пример #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;
 }
Пример #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;
 }