예제 #1
0
        private void TicketButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            fTickets console = new fTickets(cashier);

            console.ShowDialog();
            this.Show();
        }
예제 #2
0
        private void SelectedPlaceInHall(object sender, EventArgs e)
        {
            Button clickedButton = (Button)sender;

            RowInput.Text   = clickedButton.Name;
            PlaceInput.Text = clickedButton.Text;
            if (user.GetType() == typeof(CashierUser))
            {
                this.Hide();
                fTickets console = new fTickets(user, session, Convert.ToInt32(RowInput.Text),
                                                Convert.ToInt32(PlaceInput.Text), session.FilmSession.Price);
                console.ShowDialog();
                this.Show();
            }
        }