private void AddFolderDialog_OnFinished(object sender, EventArgs e) { var addfiledialogVM = ((sender as AddFolderDialog).DataContext as AddFolderDialogViewModel); if (addfiledialogVM.FileHasChange) { ApplicationService.SaveMovieFolders(); MovieDataSource.LoadAllFolders(addfiledialogVM.RemovedFolders); } HasNoFolderAction(); }
private void HomePageLocalNoFolder_OnFinished(object sender, RoutedEventArgs e) { if (e == null) { return; } NewFolderModel newFolderModel = e.Source as NewFolderModel; if (newFolderModel.NewFolderCollection == null) { return; } MovieDataSource.LoadAllFolders(); ApplicationService.SaveMovieFolders(); }