예제 #1
0
 private async Task HandleReporting(RemoteCameraModel model)
 {
     _sender.RegisterEndPoint(model.IPAddress, model.Port);
     _cameras[model.IPAddress.ToString()] = model;
     await OnCamerasUpdated();
     await _sender.IssueCommand(new EnableHeartbeatCommand(LocalAddress, _heartbeat.Port));
 }
예제 #2
0
 public MapCameraViewModel(RemoteCameraModel model)
 {
     var i = index++%colors.Count;
     Background = new SolidColorBrush(colors[i]);
     Name = model.IPAddress.ToString();
     Frames = new CollectionViewSource();
     FramesVisible = Visibility.Collapsed;
 }
예제 #3
0
 public MapCameraViewModel(RemoteCameraModel model, IEnumerable<BitmapImage> frames)
     : this(model)
 {
     Frames.Source = frames;
     FramesVisible = Visibility.Visible;
 }
예제 #4
0
 public MapCameraViewModel(RemoteCameraModel model)
 {
     var i = index++%colors.Count;
     Background = new SolidColorBrush(colors[i]);
     Name = model.IPAddress.ToString();
 }