Beispiel #1
0
        private async void CreateShowingSubmit_Click(object sender, EventArgs e)
        {
            int insertedId = -1;
            //int movieId = SelectMovieBox.Items.;
            //int theaterId = SelectTheaterBox.Text;
            DateTime date = monthCalendar1.SelectionRange.Start;

            insertedId = await _showingControl.CreateShowing(1, 1, date); //hardcode dropdowns cause lack of time

            if (insertedId <= 0)
            {
                ErrorLbl.Text = "Der skete en fejl under oprettelse.";
            }
            else
            {
                System.Diagnostics.Debug.WriteLine(insertedId);
                ErrorLbl.Text = "Showing er oprettet";
            }
        }