private void btnReplaceBaseFile_Click(object sender, RoutedEventArgs e) { var path = IO.OpenFileDialog(); if (!string.IsNullOrEmpty(path)) { LoadedShimFile?.ReplaceBase(path); } }
private void ExtractEntry_Click(object sender, RoutedEventArgs e) { var path = IO.SaveFileDialog(SelectedEntry.SafeFileName); if (!string.IsNullOrEmpty(path)) { LoadedShimFile?.Extract(SelectedEntry, path); } }
private void SaveFile_Click(object sender, RoutedEventArgs e) { var path = IO.SaveFileDialog(); if (!string.IsNullOrEmpty(path)) { LoadedShimFile?.Save(path); } }
private void btnAddShimEntry_Click(object sender, RoutedEventArgs e) { var path = IO.OpenFileDialog(); if (!string.IsNullOrEmpty(path)) { ShimEntry entry = new ShimEntry(path); LoadedShimFile?.AddEntry(entry); } }
private void RepShim_Click(object sender, RoutedEventArgs e) { var path = IO.OpenFileDialog(); if (!string.IsNullOrEmpty(path)) { ShimEntry en = new ShimEntry(path, SelectedEntry.Name); LoadedShimFile?.ReplaceEntry(SelectedEntry, en); } }
private void DeleteEntry_Click(object sender, RoutedEventArgs e) { LoadedShimFile?.DeleteEntry(SelectedEntry); }