public AlbumButton(AlbumClassLibrary.IAlbum album) { InitializeComponent(); this.Album = album; this.MainButton.Content = album.DisplayName; album.PriorityChanged += Album_PriorityChanged; }
private void SaveButton_Click(object sender, RoutedEventArgs e) { var item = TypeComboBox.SelectedItem as AlbumClassLibrary.IAlbum; item.DisplayName = NameTextBox.Text; AlbumManager.AddAlbum(item); AlbumAdded = true; newAlbum = item; Close(); }