public ShootingViewData(AppStatus aStatus, CameraStatus cStatus) { this.appStatus = aStatus; appStatus.PropertyChanged += (sender, e) => { switch (e.PropertyName) { case "IsTryingToConnectLiveview": OnPropertyChanged("ShootingProgressVisibility"); break; case "IsSearchingDevice": OnPropertyChanged("ShootingProgressVisibility"); break; case "IsTakingPicture": OnPropertyChanged("ShootingProgressVisibility"); OnPropertyChanged("ShootButtonStatus"); break; case "IsIntervalShootingActivated": OnPropertyChanged("ShootButtonImage"); OnPropertyChanged("ShootButtonStatus"); break; } }; this.cameraStatus = cStatus; cStatus.PropertyChanged += (sender, e) => { switch (e.PropertyName) { case "MethodTypes": OnPropertyChanged("ShootFunctionVisibility"); OnPropertyChanged("ZoomElementVisibility"); break; case "Status": OnPropertyChanged("ShootButtonImage"); OnPropertyChanged("ShootButtonStatus"); break; case "ShootModeInfo": OnPropertyChanged("ShootButtonImage"); break; } }; }
public IntervalShootingManager(AppStatus status) { this.status = status; _Init(); }