示例#1
0
        private void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            string filename = "music.xml";

            Console.WriteLine("Saving " + filename);
            musicLib.Save();
        }
        private void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Save music.xml in the same directory as the exe
            string filename = "music.xml";

            Console.WriteLine("Saving " + filename);
            musicLib.Save();
        }
        private void saveButton_Click(object sender, RoutedEventArgs e)
        {
            // Save music.xml in the same directory as the exe
            string filename = "music.xml";

            Console.WriteLine("Saving " + filename);
            musicLib.Save(filename);
        }
示例#4
0
 private void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     musicLib.Save();
 }