Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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));
        }