public static void AddNewSong(string name, string artist = null, string tuning = null, Difficulty difficulty = Difficulty.Null) { Song songToAdd = (new Song(name, IDForNextSong, artist, tuning, difficulty)); songToAdd.DateTimeLastPracticed = DateTime.Parse("01/01/0001 01:00:00"); ListOfSongs.Add(songToAdd); IDForNextSong++; }
public static void LoadSong(string name, string artist, string tuning, Difficulty difficulty, DateTime timeLastPracticed, BindingList <string> comments) { Song songToLoad = new Song(name, IDForNextSong, artist, tuning, difficulty); songToLoad.DateTimeLastPracticed = timeLastPracticed; foreach (string comment in comments) { songToLoad.Comments.Add(comment); } ListOfSongs.Add(songToLoad); IDForNextSong++; }