Пример #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();
 }
Пример #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     textBox3.Text       = msh.GetTotalMoneySpent().ToString() + "$";
     textBox1.Text       = msh.GetTotalBalance().ToString();
     textBox4.Text       = msh.GetBookedCampings().ToString();
     textBox5.Text       = msh.GetTotalAmountCampings().ToString() + "$";
     tbRentShop.Text     = msh.GetRentShopMoneyEarned().ToString() + "$";
     tbFoodShop.Text     = msh.GetFoodShopAmountEarned().ToString() + "$";
     tbSouvenirShop.Text = msh.GetSouvernirShopAmountEarned().ToString() + "$";
 }
Пример #3
0
 public Camping_overview()
 {
     msh = new MySqlhelper();
     InitializeComponent();
     lbFree.Text     = msh.GetCampingsNotBooked().ToString();
     lbNoBooked.Text = msh.GetBookedCampings().ToString();
     foreach (string item in msh.GetCampingId())
     {
         cbProductsSold.Items.Add(item);
     }
     timer1.Start();
 }
Пример #4
0
        public FinanceOverview()
        {
            InitializeComponent();
            msh                 = new MySqlhelper();
            textBox3.Text       = msh.GetTotalMoneySpent().ToString() + "$";
            textBox1.Text       = msh.GetTotalBalance().ToString();
            textBox4.Text       = msh.GetBookedCampings().ToString();
            textBox5.Text       = msh.GetTotalAmountCampings().ToString() + "$";
            tbRentShop.Text     = msh.GetRentShopMoneyEarned().ToString() + "$";
            tbFoodShop.Text     = msh.GetFoodShopAmountEarned().ToString() + "$";
            tbSouvenirShop.Text = msh.GetSouvernirShopAmountEarned().ToString() + "$";


            timer1.Start();
        }
Пример #5
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();
        }
Пример #6
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     lbFree.Text     = msh.GetCampingsNotBooked().ToString();
     lbNoBooked.Text = msh.GetBookedCampings().ToString();
 }