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