Exemple #1
0
        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());
            }
        }
Exemple #2
0
        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());
            }
        }