コード例 #1
0
        public MyTickets()
        {
            InitializeComponent();



            var tickets = insertLinq.GetTickets();

            foreach (var ticket in tickets)
            {
                if (ticket.Hash == LoginForm.Counter)
                {
                    TimeList.Items.Add(ticket.TDateFlight);
                }
            }
        }
コード例 #2
0
        public ValidationTicket()
        {
            InitializeComponent();
            InsertLinq insertLinq = new InsertLinq();

            var tickets = insertLinq.GetTickets();

            foreach (var ticket in tickets)
            {
                if ((ticket.TName + ticket.TFrom + ticket.TTo + ticket.TDateFlight) == FlightForm.Counter)
                {
                    NameofPassenger.Text = ticket.TName;
                    From.Text            = ticket.TFrom;
                    To.Text           = ticket.TTo;
                    Date.Text         = ticket.TDateFlight;
                    FlightNumber.Text = ticket.TFlightNumber;
                    Seat.Text         = ticket.TSeat;
                    Gate.Text         = ticket.TGate;
                }
            }
        }