public PhotographersViewModel() { PhotographerListViewModel = new PhotographerListViewModel(); PhotographerListViewModel.OnPhotographerChanged += OnPhotographerChanged; PhotographerInfoViewModel = new PhotographerInfoViewModel(); PhotographerInfoViewModel.OnPhotographerUpdated += OnPhotographerUpdated; }
private void OnPhotographerUpdated(object sender, EventArgs args) { PhotographersUpdated?.Invoke(this, new EventArgs()); PhotographerListViewModel?.UpdatePhotographersList(); }