Exemplo n.º 1
0
        private void ReturnBTN_Click(object sender, EventArgs e)
        {
            this.Hide();
            RemoveMovie delform = new RemoveMovie();

            delform.ShowDialog();
            this.Close();
        }
Exemplo n.º 2
0
        private void MovieBTN_Click(object sender, EventArgs e)
        {
            DialogResult confirmation = MessageBox.Show("Are you sure you want to remove " + Title + "?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (confirmation == DialogResult.Yes)
            {
                DelData DD = new DelData();
                DD.DeleteMovie(Convert.ToInt32(MovieID));

                this.Hide();
                RemoveMovie delform = new RemoveMovie();
                delform.ShowDialog();
                this.Close();
            }
            else
            {
                this.Hide();
                RemoveMovie delform = new RemoveMovie();
                delform.ShowDialog();
                this.Close();
            }
        }