示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //lbTotalNrSoldTickets.Text = ticketData.GetTicket().ToString();
     // display total number of booked spots:
     lbTotalNrBookedSpots.Text = campingSpotData.BookedSpot().ToString();
     // display total number of sold supplies:
     lbTotalNrSoldItems.Text = invoiceData.GetTotalSoldItems().ToString();
     boatinfo.Text           = boatdata.GetBookedBoat().ToString();
     // display total balance of all accounts:
     lbTotalBalance.Text = VisitorData.CalculateTotalBalance().ToString();
     //???// display number of participant left the event: SELECT COUNT(*) FROM PARTICIPANT WHERE HASCHECKEDIN = 'NO';
     // display present total number of participants:
     lbNrTotalNrVisitors.Text = VisitorData.GetPresentParticipants().ToString();
 }
示例#2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Interval = 3000;
            timer1.Enabled  = true;

            // display total number of sold ticket:
            lbTotalNrSoldTickets.Text = ticketData.GetTicket().ToString();
            // display total number of booked spots:
            lbTotalNrBookedSpots.Text = campingSpotData.BookedSpot().ToString();
            // display total number of sold supplies:
            lbTotalNrSoldItems.Text = invoiceData.GetTotalSoldItems().ToString();
            // display total balance of all accounts:
            lbTotalBalance.Text = VisitorData.CalculateTotalBalance().ToString();
            //???// display number of participant left the event: SELECT COUNT(*) FROM PARTICIPANT WHERE HASCHECKEDIN = 'NO';
            // display present total number of participants:
            lbNrTotalNrVisitors.Text = VisitorData.GetPresentParticipants().ToString();
        }