Exemple #1
0
        private void TranslateToMicrocontrollerCCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            WinAvrConnector.TranslateToC(programList.Program);

            if (Properties.Settings.Default.OpenCCode)
            {
                Process.Start(WinAvrConnector.MicrocontrollerOutputFile);
            }
        }
Exemple #2
0
 private void LoadCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         WinAvrConnector.Load();
     }
     catch (Exception)
     {
         ShowWinAvrError();
     }
 }
Exemple #3
0
 private void CleanCmdExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         File.Delete("C_result.c");
         WinAvrConnector.Clean();
     }
     catch (Exception)
     {
         ShowWinAvrError();
     }
 }
Exemple #4
0
 // 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();
     }
 }