private void backToStartBtn_Click(object sender, EventArgs e) { AdminStartPage start = new AdminStartPage(); start.Show(); this.Hide(); }
private void backToMainPage_Click(object sender, EventArgs e) { AdminStartPage start = new AdminStartPage(); this.Close(); start.Show(); }
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"); } }