Esempio n. 1
0
 private void RunEmulatorCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         EmulatorConnector.Run();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Unable to run the emulator. Check if the emulator path is correct and if the emulator is built correctly. \n" + ex.ToString(),
                         "Unable to run the emulator.", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Esempio n. 2
0
 private void TranslateToEmulatorCCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         EmulatorConnector.TranslateToC(programList.Program);
     }
     catch (Exception)
     {
         MessageBox.Show("Emulator path or COM Port invalid. Use Build -> Preferences and Emulator to select the correct path or COM Port.",
                         "Invalid Parameters", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }