コード例 #1
0
 public PhotographersViewModel()
 {
     PhotographerListViewModel = new PhotographerListViewModel();
     PhotographerListViewModel.OnPhotographerChanged += OnPhotographerChanged;
     PhotographerInfoViewModel = new PhotographerInfoViewModel();
     PhotographerInfoViewModel.OnPhotographerUpdated += OnPhotographerUpdated;
 }
コード例 #2
0
 private void OnPhotographerUpdated(object sender, EventArgs args)
 {
     PhotographersUpdated?.Invoke(this, new EventArgs());
     PhotographerListViewModel?.UpdatePhotographersList();
 }