public PublishedCameraManagementViewModel(PublishedCameraModel model) { if (model == null) { throw new ArgumentNullException("model"); } PublishedCameraCollection = new ObservableCollection <PublishedCamera>(); Model = model; Refresh(); }
public PublishedCameraConfigurationViewModel(PublishedCameraModel model, MediaService service, Camera camera) { if (model == null) { throw new ArgumentNullException("model"); } if (service == null) { throw new ArgumentNullException("service"); } if (camera == null) { throw new ArgumentNullException("camera"); } Model = model; SelectedService = service; SelectedCamera = camera; DestinationPort = 9999; }