示例#1
0
        private void backToStartBtn_Click(object sender, EventArgs e)
        {
            AdminStartPage start = new AdminStartPage();

            start.Show();
            this.Hide();
        }
示例#2
0
        private void backToMainPage_Click(object sender, EventArgs e)
        {
            AdminStartPage start = new AdminStartPage();

            this.Close();
            start.Show();
        }
示例#3
0
        private void cancelConcertBtn_Click(object sender, EventArgs e)
        {
            var  concertId   = Convert.ToString(comingConcertsView.CurrentRow.Cells[0].Value);
            bool giveCoupons = couponsCheckBox.Checked;
            var  success     = AdminEngine.CancelConcert(concertId, giveCoupons);

            if (success)
            {
                string message = "Concert deleted and ticket-money refunded";
                if (giveCoupons)
                {
                    message += " and coupons granted";
                }
                MessageBox.Show(message);
                AdminStartPage start = new AdminStartPage();
                this.Hide();
                start.Show();
            }
            else
            {
                MessageBox.Show("Something went wrong");
            }
        }