/// <summary>
 /// Saves the transformed data corresponding to the checked radio button to a permanent file.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonSave_Click(object sender, EventArgs e)
 {
     try
     {
         string rbName       = FormUtilities.GetCheckedRadioButton(panelOutput).Name;
         int    hingeIndex   = int.Parse(rbName.Substring(rbName.Length - 2, 1));
         int    bearingIndex = int.Parse(rbName.Substring(rbName.Length - 1));
         if (rbName.Contains("GPS"))
         {
             _transform.SaveData(hingeIndex, bearingIndex, true);
             _transform.CreateReportTable(hingeIndex, hingeIndex, bearingIndex, true,
                                          _viewedTransforms);
         }
         else if (rbName.Contains("Compass"))
         {
             _transform.SaveData(hingeIndex, bearingIndex, false);
             _transform.CreateReportTable(hingeIndex, hingeIndex, bearingIndex, false,
                                          _viewedTransforms);
         }
         if (_transform.GetFullErrorMessage() != null)
         {
             ShowError(_transform.GetFullErrorMessage());
         }
         ChampExtension.GetExtension().GetDockableWindow().Show(false);
     }
     catch (Exception ex)
     {
         ShowError(ex.Message);
     }
 }