static private ExportBlackBox ( string File, BlackBoxFormat Format ) : void | ||
File | string | The file to write |
Format | BlackBoxFormat | The format in which to write the data |
return | void |
// black box export private void buttonBlackBoxExport_Click(object sender, EventArgs e) { SaveFileDialog Dialog = new SaveFileDialog(); Dialog.OverwritePrompt = true; if (comboboxBlackBoxFormat.SelectedIndex == 0) { Dialog.Filter = Interface.GetInterfaceString("dialog_csvfiles") + "|*.txt|" + Interface.GetInterfaceString("dialog_allfiles") + "|*"; } else { Dialog.Filter = Interface.GetInterfaceString("dialog_textfiles") + "|*.txt|" + Interface.GetInterfaceString("dialog_allfiles") + "|*"; } if (Dialog.ShowDialog() == DialogResult.OK) { try { Interface.ExportBlackBox(Dialog.FileName, (Interface.BlackBoxFormat)comboboxBlackBoxFormat.SelectedIndex); } catch (Exception ex) { MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand); } } }