//public override string ToString() //{ // var text = string.Empty; // var lastLineNumber = 0; // foreach (var word in Lyrics.OrderBy(l=>l.Line).ThenBy(l=>l.Column).ToList()) // { // if (lastLineNumber == 0) // { // lastLineNumber++; // text = word.Word.Word; // } // else if (lastLineNumber == word.Line) // { // text = string.Format("{0} {1}", text, word.Word.Word); // } // else // { // text = string.Format("{0}{1}{2}", text, Environment.NewLine, word.Word.Word); // lastLineNumber = word.Line; // } // } // return text; //} public void Copy(SongModel source) { Id = source.Id; Title = source.Title; Author = source.Author; PublishDate = source.PublishDate; Album = source.Album; Text = source.Text; }
public GlobalViewModel() { SongSearch = new SongModel(); Songs = new ObservableCollection<SongModel>(); }
public LoadViewModel() { Song = new SongModel { PublishDate = DateTime.Today }; Properties = new GeneralProperties(); SongStatistics = new SongStatisticsModel(); }