Beispiel #1
0
        private void buttonUpdatePerformance_Click(object sender, EventArgs e)
        {
            if (textBoxPerformanceId.Text == "" ||
                textBoxCircumstancesPerformance.Text == "")
            {
                MessageBox.Show("Wrong input!");
                return;
            }

            ISongsRepository songsRep = new SongsRepository();


            bool flag = songsRep.UpdatePSong(Convert.ToInt32(textBoxPerformanceId.Text),
                                             textBoxCircumstancesPerformance.Text);

            if (flag)
            {
                MessageBox.Show("Updated!");
            }
            else
            {
                MessageBox.Show("Error!");
            }

            textBoxPerformanceId.Text            = "";
            textBoxCircumstancesPerformance.Text = "";
        }