예제 #1
0
        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);
        }
예제 #2
0
 private void SaveAsBeatsFile(string filename)
 {
     Beats.Save(filename);
 }