Exemple #1
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() + "$";
 }
Exemple #2
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();
        }