Пример #1
0
        public fTickets(AuthorisedUser user)
        {
            InitializeComponent();
            this.user = user;
            ReadingFromDateBase reading = new ReadingFromDateBase();

            ticketsList      = reading.ReadTickets();
            percentsList     = reading.ReadPercentages();
            totalPercentList = reading.ReadTotalPercents();
            statusTicketList = reading.ReadStatusTickets();
            sessionList      = reading.ReadSessions();
            LoadDataGridView();
        }
Пример #2
0
        public fTickets(AuthorisedUser user, Session session, int row, int placeNumber, double price)
        {
            InitializeComponent();
            this.user = user;
            ReadingFromDateBase reading = new ReadingFromDateBase();

            ticketsList      = reading.ReadTickets();
            percentsList     = reading.ReadPercentages();
            totalPercentList = reading.ReadTotalPercents();
            statusTicketList = reading.ReadStatusTickets();
            sessionList      = reading.ReadSessions();
            LoadDataGridView();
            SessionInput.Text     = session.FilmSession.FilmName;
            RowInput.Text         = row.ToString();
            PlaceNumberInput.Text = placeNumber.ToString();
            PriceInput.Text       = price.ToString();
            TicketInput.Text      = (ticketsList.Tickets.Count() + 1).ToString();
        }