예제 #1
0
 private void DevTtyCreated(object sender, System.IO.FileSystemEventArgs e)
 {
     if (e.ChangeType.HasFlag(System.IO.WatcherChangeTypes.Created))
     {
         DebugOutput("DeviceMonitor.FileSystemNotifcationPort: DevTtyCreated: " + e.FullPath);
         DeviceChange.SystemReportsDeviceAdded(this, e.FullPath, INTV.Core.Model.Device.ConnectionType.Serial);
     }
 }
예제 #2
0
 private static void HandleSystemDidWake(object sender, EventArgs e)
 {
     DebugOutput("DeviceMonitor.HandleSystemDidWake");
     foreach (var port in INTV.Shared.Model.Device.SerialPortConnection.AvailablePorts)
     {
         DeviceChange.SystemReportsDeviceAdded(null, port, INTV.Core.Model.Device.ConnectionType.Serial);
     }
 }
예제 #3
0
 private static void ReportPortArrival(string portName)
 {
     DebugOutput("IOService: Arrival: port: " + portName);
     DeviceChange.SystemReportsDeviceAdded(null, portName, INTV.Core.Model.Device.ConnectionType.Serial);
 }