protected virtual void OnPortsRecieved(EventArgs e, string[] myPortList) // [2] Recieves the new date and time
        {
            SendSerialPortArgs args = new SendSerialPortArgs()
            {
                portList = myPortList
            };                                  //[3] Sets the data out as outlined in 4

            SerialPortEvent.Invoke(null, args); // [5] Pass the data to the event
        }
        protected virtual void OnDataRecieved(EventArgs e, string myGPSData, bool myThreadEnd)
        {
            SendSerialPortArgs args = new SendSerialPortArgs()
            {
                gpsData = myGPSData, ThreadEnd = myThreadEnd
            };

            SerialPortEvent.Invoke(null, args);
        }
Esempio n. 3
0
 public void OnSerialPortEvent(SerialPortEventArgs args)
 {
     SerialPortEvent?.Invoke(args);
 }