Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     lbCurrVisitors.Text = msh.GetVisitorsInTheEvent().ToString();
     lbProfit.Text       = msh.GetTotalMoneySpent().ToString();
     lbProductsSold.Text = msh.GetTotalProductsSoldAndRent().ToString();
     lbCampTaken.Text    = msh.GetBookedCampings().ToString();
     lbCheckedin.Text    = msh.GetVisitorCheckedInEvent().ToString();
     lbCheckedOut.Text   = msh.GetVisitorCheckedOutEvent().ToString();
 }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            msh = new MySqlhelper();

            visitorsOverview = new VisitorsOverview();
            campingOverview  = new Camping_overview();
            productsOverview = new ProductsOverview();
            financeOverview  = new FinanceOverview();

            lbCurrVisitors.Text = msh.GetVisitorsInTheEvent().ToString();
            lbProfit.Text       = msh.GetTotalMoneySpent().ToString();
            lbProductsSold.Text = msh.GetTotalProductsSoldAndRent().ToString();
            lbCampTaken.Text    = msh.GetBookedCampings().ToString();
            lbCheckedin.Text    = msh.GetVisitorCheckedInEvent().ToString();
            lbCheckedOut.Text   = msh.GetVisitorCheckedOutEvent().ToString();
            timer1.Start();
        }