public void AddSong() { AddEditForm f = new AddEditForm(); if (f.ShowDialog() == DialogResult.OK) { model.AddSong(f.titleTextBox.Text, f.authorTextBox.Text, f.datePicker.Value, f.genrePicker1.ToString()); } }
public void EditSong(Song song) { AddEditForm f = new AddEditForm(); f.setToSong(song); if (f.ShowDialog() == DialogResult.OK) { song.SetValues(f.titleTextBox.Text, f.authorTextBox.Text, f.datePicker.Value, f.genrePicker1.ToString()); } }