private void addBtn_Click(object sender, EventArgs e) { int artistId = Convert.ToInt32(availableArtistsView.CurrentRow.Cells[0].Value); int sceneId = Convert.ToInt32(availableScenesView.CurrentRow.Cells[0].Value); DateTime concertDate = concertDateSelect.Value; bool success = false; string message; success = AdminEngine.AddConcert(concertDate, sceneId, artistId, out message); if (success) { MessageBox.Show(message); } else { MessageBox.Show(message); } }