private void MenuItem_Setup_Click(object sender, RoutedEventArgs e) { try { var dialog = new InstallWindow(); dialog.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
private bool InstallationDialogAndCheck() { var exePath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); if (!WrapperUtility.CheckToolSetup(exePath)) { try { var dialog = new InstallWindow(); dialog.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Installation", MessageBoxButton.OK, MessageBoxImage.Error); } } return(WrapperUtility.CheckBashSetup() && WrapperUtility.CheckToolSetup(Environment.CurrentDirectory)); }