private void TranslateToMicrocontrollerCCmdExecuted(object sender, ExecutedRoutedEventArgs e) { WinAvrConnector.TranslateToC(programList.Program); if (Properties.Settings.Default.OpenCCode) { Process.Start(WinAvrConnector.MicrocontrollerOutputFile); } }
private void LoadCmdExecuted(object sender, ExecutedRoutedEventArgs e) { try { WinAvrConnector.Load(); } catch (Exception) { ShowWinAvrError(); } }
private void CleanCmdExecuted(object sender, ExecutedRoutedEventArgs e) { try { File.Delete("C_result.c"); WinAvrConnector.Clean(); } catch (Exception) { ShowWinAvrError(); } }
// Create(New), Save and Load. Traceability: WC_3305: As an ESS, I can create, save and load program files. private void BuildCmdExecuted(object sender, ExecutedRoutedEventArgs e) { try { WinAvrConnector.Make(); } catch (ComPortException) { MessageBox.Show("COM port is not selected. Unable to build.", "Failed", MessageBoxButton.OK, MessageBoxImage.Error); } catch (Exception) { ShowWinAvrError(); } }