Пример #1
0
 public static DeviceViewModel GetDeviceViewModel(string address)
 {
     if (_device == null)
     {
         _device = new DeviceViewModel(address);
     }
     return(_device);
 }
Пример #2
0
 public static DeviceViewModel TryLoadDevice()
 {
     if (_device == null)
     {
         _device = new DeviceViewModel("00:00:00:00:00:00");
     }
     // _device.Device.LoadAddress();
     return(_device);
 }