/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { OPCDataQueue.DisconnectAllServers(); if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Stops the DataPorter. /// </summary> public void Stop() { if (isStarted) { string msg = "Closing the application. Product name: {0}, product version: {1}"; new EventLogMonitor(String.Format(msg, Application.ProductName, Application.ProductVersion), EventLogEntryType.Information, 0, 1829).WriteEntry(); isStarted = false; OPCDataQueue.DisconnectAllServers(); } }