Esempio n. 1
0
        void sense_o_SET_RTC_RESPONSE_RECEIVED(TransactionStatusClass.TransactionValues STATUS)
        {
            System.Diagnostics.Debug.WriteLine("Set RTC Response Received ");

            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(() => sense_o_SET_RTC_RESPONSE_RECEIVED(STATUS)));
            }
            else
            {
                string Time = DateTime.Now.ToString("yyyy-MM-dd-HHmm-ss");
                System.Diagnostics.Debug.WriteLine("sense_o_SET_RTC_RESPONSE_RECEIVED : Time : " + Time);
                UpdateListView(0, STATUS.ToString(), Time, 0);
            }

            if (sense_o != null)
            {
                sense_o.Dispose();
                GC.Collect();
            }
        }
Esempio n. 2
0
        void sense_o_EEPROM_RESPONSE_RECEIVED(TransactionStatusClass.TransactionValues STATUS)
        {
            System.Diagnostics.Debug.WriteLine("EEPROM Data Received");
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(() => sense_o_EEPROM_RESPONSE_RECEIVED(STATUS)));
            }
            else
            {
                string Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                UpdateListView(1, STATUS.ToString(), Time, 0);

                if (STATUS == TransactionStatusClass.TransactionValues.SUCCESS)
                {
                    System.Diagnostics.Debug.WriteLine("EEPROM Data Received Transaction was a success");
                    // Going To remove this for to it's own thread
                    //Check4InternetThenUpdateToServer();
                }
            }

            if (sense_o != null)
            {
                sense_o.Dispose();
                GC.Collect();
            }
        }