public bool HasAnyChanges() { return(NewArtist != OldArtist || NewAlbum != OldAlbum || NewName != OldName || NewHebrewName != OldHebrewName || NewLyrics != OldLyrics || !NewTags.SequenceEqual(OldTags) || !NewContributingArtists.SequenceEqual(OldContributingArtists)); }
/* ----------------------------------------------------------------- */ /// /// TagsPanel_ControlRemoved /// /// <summary> /// コントロールが削除された時に実行されるハンドラです。 /// </summary> /// /* ----------------------------------------------------------------- */ private void TagsPanel_ControlRemoved(object sender, ControlEventArgs e) { var tag = e.Control.Tag as Tag; if (tag == null) { return; } var result = NewTags.FirstOrDefault(x => x.Name == tag.Name); if (result != null) { NewTags.Remove(result); } else { RemoveTags.Add(tag); } }