public MainWindow() { DivineLocation = Properties.Settings.Default.divineExe; Bg3ExeLocation = Properties.Settings.Default.bg3Exe; Unpacker = new PakUnpackHelper(); LaunchGameAllowed = !string.IsNullOrEmpty(Bg3ExeLocation); QuickLaunch = Properties.Settings.Default.quickLaunch; }
private async void Decompress_Click(object sender, RoutedEventArgs e) { var vm = DataContext as ViewModels.MainWindow; if (vm.NotDecompressing) { vm.NotDecompressing = false; await PakUnpackHelper.DecompressAllConvertableFiles().ContinueWith(delegate { Application.Current.Dispatcher.Invoke(() => { vm.NotDecompressing = true; }); }); } }