private void mnuSave_Click(object sender, RoutedEventArgs e) { SaveFileDialog dialog = new SaveFileDialog { FileName = Path.GetFileNameWithoutExtension(_openFile) }; dialog.Filter = "Text-File|*.txt"; if (dialog.ShowDialog(this) != true) { return; } Beats.Save(dialog.FileName); }
private void SaveAsBeatsFile(string filename) { Beats.Save(filename); }