Exemplo n.º 1
0
    public static string get_mb_auto()
    {
        string show   = "";
        string result = "";

        result = Log.get_temp_file("mb.html");
        //IWindow.write(result);

        show = MbData.get_detail(result);
        Log.create_log_file(show);
        IWindow.write_line(show);

        AnalyseEngine.select_mb();
        AnalyseEngine.select_event();
        AnalyseEngine.select_odd();
        return("COMPUTE OK!");
    }
Exemplo n.º 2
0
        //Close connection
        public void Disconnect()
        {
            if (IsConnected)
            {
#if !DEMO
                try
                {
                    _connection.Close();
                }
                catch (MySqlException ex)
                {
                    Status = ex.Message;
                }
#else
                _isConnected = false;
#endif
            }

            if (MbData != null)
            {
                lock (MbData)
                    MbData.Clear();
            }
            if (MbAlarm != null)
            {
                lock (MbAlarm)
                    MbAlarm.Clear();
            }
            if (LatestData != null)
            {
                lock (LatestData)
                    LatestData.Clear();
            }

            if (_isRetrieving != null)
            {
                _isRetrieving.Close();
            }

            EventAggregator.SignalIsRetrievingData("", false);
            OnConnectionStatusChanged?.Invoke(this, null);
        }