Exemple #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        protected ScalesMng()
        {
            // Singleton
            _main = this;

            SerialDevice = ESerialDevice.K3Scales;

            LastLine = new TLine {
                Line = string.Empty
            };
        }
Exemple #2
0
        public void ScaleListeningStop()
        {
            try
            {
                SaveScaleLine();

                SerialPortMng.Instance.Close();

                _main = null;
            }
            catch (Exception ex)
            {
                MyLogger.LogException(ex, "ScalesMng::ScaleListeningStop");
            }
        }