예제 #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;
 }