Exemplo n.º 1
0
        private void MoviShower_Click(object sender, EventArgs e)
        {
            Form TicketGenerator = new TicketGenerator();

            foreach (var button in ClickedButtons)
            {
                button.Enabled   = false;
                button.ForeColor = Color.DarkGray;
            }

            TicketGenerator.Show();
        }
        private void MoviShower_Click(object sender, EventArgs e)
        {
            Form TicketGenerator = new TicketGenerator();

            for (int i = 0; i < Seats.Count; i++)
            {
                SeatsTextBox.Text += Seats[i] + ", ";
            }

            foreach (var button in ClickedButtons)
            {
                button.Enabled   = false;
                button.ForeColor = Color.DarkGray;
            }

            TicketGenerator.Show();
        }