Exemplo n.º 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));
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public MapCameraViewModel(RemoteCameraModel model, IEnumerable<BitmapImage> frames)
     : this(model)
 {
     Frames.Source = frames;
     FramesVisible = Visibility.Visible;
 }
Exemplo n.º 4
0
 public MapCameraViewModel(RemoteCameraModel model)
 {
     var i = index++%colors.Count;
     Background = new SolidColorBrush(colors[i]);
     Name = model.IPAddress.ToString();
 }