public AddressEditingViewModel(AddressInfo addressInfo, EpisodesEditorViewModel parent) { _libVlc = new LibVLC(); MediaPlayer = new MediaPlayer(_libVlc) { EnableMouseInput = false }; MediaPlayer.TimeChanged += MediaPlayerOnTimeChanged; CurrentAddressInfo = addressInfo; NewAddress = addressInfo.Link; AddressSnapshot = JsonConvert.SerializeObject(CurrentAddressInfo); Parent = parent; Jumpers = new BindableCollection <Jumper>(CurrentAddressInfo.Jumpers); NotifyOfPropertyChange(() => CanPasteFilmEndTime); NotifyOfPropertyChange(() => MediaPlayer); NotifyOfPropertyChange(() => CanAddFirstJumper); NotifyOfPropertyChange(() => CanAddVolumeJumper); SystemVariables.IsEditDefaultAddressInfo = false; }
public EpisodeEditingViewModel(Episode episode, EpisodesEditorViewModel parent) { CurrentEpisode = episode; EpisodeSnapshot = JsonConvert.SerializeObject(CurrentEpisode); Parent = parent; }