/// <summary>
 /// Button clicked
 /// Method that calls a class that generates a dummy code with coordinates
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_GenerateCode_Click(object sender, EventArgs e)
 {
     if (outputFileName == null)
     {
         outputFileName = "C:\\Users\\Tomas\\Dropbox\\Kandidat\\Program\\RobPro2\\RobPro2\\Resources\\OutputFile";
     }
     G_to_Rapid_Converter.GenerateRapid(outputFileName,
                                        int.Parse(txtB_NumOfLines.Text));
     lbl_NumOfRows.Text = InputOutput.NumberOfLines(outputFileName).ToString();
 }
 /// <summary>
 /// Button clicked
 /// Method that calls the convert function.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_ConvertCode_Click(object sender, EventArgs e)
 {
     if (inputFileName != null && outputFileName != null)
     {
         double[] XYZ = { double.Parse(txtB_X.Text), double.Parse(txtB_Y.Text),
                          double.Parse(txtB_Z.Text) };
         G_to_Rapid_Converter.GCodeToRapidConverter(inputFileName, outputFileName, XYZ);
         lbl_FileConverted.Text = "File Converted";
     }
     else
     {
         MessageBox.Show("Error: There is something wrong with the input / output files, have you specified them ? ");
     }
 }