Beispiel #1
0
        public void updateUserBalance()
        {
            long ta = userBalance.getTotalAsset();

            lblBalance.Text = ta.ToString();

            double percent = userBalance.getProfitPercentage();

            lbl_percent.Text = percent.ToString();

            long profit = userBalance.getProfit();

            profit_txt.Text = profit.ToString();

            long purchase = userBalance.getPurchaseAmount();

            lblPurchaseNumber.Text = purchase.ToString();

            long evaluated = userBalance.getCurrentTotalPrice();

            evaluated_txt.Text = evaluated.ToString();

            long cash = userBalance.getCash();

            cash_txt.Text = cash.ToString();
        }
Beispiel #2
0
        public mainForm()
        {
            InitializeComponent();
            userBalance = new balance();
            buy_data    = new buyData();
            sell_data   = new sellData();

            long   totalAsset        = userBalance.getTotalAsset();
            long   cash              = userBalance.getCash();
            double profitPercent     = userBalance.getProfitPercentage();
            long   profit            = userBalance.getProfit();
            long   purchase          = userBalance.getPurchaseAmount();
            long   currentTotalPrice = userBalance.getCurrentTotalPrice();

            lblBalance.Text        = totalAsset.ToString();
            lbl_percent.Text       = "0%";
            profit_txt.Text        = profit.ToString();
            lblPurchaseNumber.Text = purchase.ToString();
            evaluated_txt.Text     = currentTotalPrice.ToString();
            cash_txt.Text          = cash.ToString();
        }