Пример #1
0
        private void btnSaveOnly_Click(object sender, EventArgs e)
        {
            appDB = new AppDatabase();
            string editsong = appDB.EditSong(int.Parse(lstSongids.Text), lstBookcodes.Text, txtNumber.Text,
                                             txtSongTitle.Text, txtSongContent.Text, txtSongKey.Text, "", "");

            if (editsong == "success")
            {
                appDB.SongsUpdate(lstBookcodes.Text, lstSongResults.Items.Count);
                LoadFeedback(txtSongTitle.Text + " has been updated successfully!", true, true);
            }
            else
            {
                LoadFeedback("Unable to edit the song: " + editsong, false);
            }
        }