Beispiel #1
0
        private void TimeBTN_Click(object sender, EventArgs e)
        {
            this.Hide();
            DelTimes delform = new DelTimes(MovieID, Title);

            delform.ShowDialog();
            this.Close();
        }
Beispiel #2
0
        private void ConfirmBTN_Click(object sender, EventArgs e)
        {
            DialogResult confirmation = MessageBox.Show("Are you sure you want to remove the time:" + time.ToString("HH:mm dd/MM/yyyy") + "?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (confirmation == DialogResult.Yes)
            {
                DelData DD = new DelData();
                DD.DeleteTime(Convert.ToInt32(DateID));

                this.Hide();
                DelTimes delform = new DelTimes(MovieID, Title);
                delform.ShowDialog();
                this.Close();
            }
            else
            {
                this.Hide();
                DelTimes delform = new DelTimes(MovieID, Title);
                delform.ShowDialog();
                this.Close();
            }
        }