private void doData(object sender, ScallopSensorDataEventArgs e) { if (this.Data != null) this.Data(sender, e); }
void SensorInterface_Data(object sender, ScallopSensorDataEventArgs e) { Console.WriteLine("Sensor data received at " + System.DateTime.Now.ToString("HH:mm:ss.ff")); Bitmap bmp = e.Data as Bitmap; if (bmp != null) bmp.Dispose(); }