コード例 #1
0
        public Profile()
        {
            InitializeComponent();
            nameLabel.Text       = Cinema.CurUser.Login;
            cardNumberLabel.Text = Cinema.CurUser.CardNumber;
            cardSumLabel.Text    = Cinema.CurUser.CardSum.ToString();
            SetMessages();
            TicketsList films = new AllFilmsList();

            films.SetTickets(ticketsList);
        }
コード例 #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            TicketsList films;

            if (comboBox1.SelectedIndex == 0)
            {
                films = new AllFilmsList();
            }
            else if (comboBox1.SelectedIndex == 1)
            {
                films = new WatchedFilmsList();
            }
            else
            {
                films = new ComingFilmsList();
            }
            films.SetTickets(ticketsList);
        }