private async void EditIndex_Click(object sender, RoutedEventArgs e) { if (ApplicationView.CurrentIndexFile == null) { return; } IndexDialog dialog = new IndexDialog { DataContext = ApplicationView.CurrentIndexFile, Owner = this, IsNew = false, ResizeMode = System.Windows.ResizeMode.NoResize }; if (dialog.ShowDialog() == true) { ApplicationView.CurrentIndexFile.SaveIndexFile(); await ApplicationViewService.UpdateIndex(); } else { await ApplicationViewService.LoadIndex(ApplicationView.CurrentIndexFile.IndexFile); } }
private async void UpdateIndex_Click(object sender, RoutedEventArgs e) { await ApplicationViewService.UpdateIndex(); }