/// <summary> /// Export actual values to a XML file /// </summary> /// <param name="Filename">Target file name</param> /// <param name="mFileExtensionIndex">Extension identifier</param> public void ActualValuesSaveFile(string Filename, int mFileExtensionIndex) { if (!mECU.ReadActualValues()) { tellStatus(String.Format("Could not read values ({0})", mECU.LastReturnValue)); } else { //mECU.ActualValuesXmlExport(Filename); // speichern switch (mFileExtensionIndex) { case 2: /*csv*/ mECU.ActualValuesCsvExport(Filename); tellStatus("Istwerte (CSV) gespeichert."); break; case 1: /*xml*/ mECU.ActualValuesXmlExport(Filename); tellStatus("Istwerte (XML) gespeichert."); break; case 0: default: // tellStatus("Istwerte nicht gespeichert! Unbekannter Dateityp!"); break; } } }