void ExportSF2(object sender, EventArgs e) { var d = new SaveFileDialog { Title = "Esporta File SF2", Filter = "File SF2|*.sf2" }; if (d.ShowDialog() != DialogResult.OK) { return; } try { VoiceTableSaver.Save(d.FileName); FlexibleMessageBox.Show($"Voicetable salvata in {d.FileName}.", Text); } catch (Exception ex) { FlexibleMessageBox.Show(ex.Message, "Errore Nell'Esportazione Del File SF2"); } }
void ExportSF2(object sender, EventArgs e) { var d = new SaveFileDialog { Title = "Export SF2 File", Filter = "SF2 file|*.sf2" }; if (d.ShowDialog() != DialogResult.OK) { return; } try { VoiceTableSaver.Save(d.FileName); FlexibleMessageBox.Show($"Voice table saved to {d.FileName}.", Text); } catch (Exception ex) { FlexibleMessageBox.Show(ex.Message, "Error Exporting SF2 File"); } }