예제 #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();
        }
예제 #2
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            // 잔고 초기화
            userBalance = new balance();
            long totalAsset        = userBalance.getTotalAsset();
            long cash              = userBalance.getCash();
            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();
        }
예제 #3
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            // 잔고 초기화
            userBalance = new balance();
            double totalAsset        = userBalance.getTotalAsset();
            double cash              = userBalance.getCash();
            double profitPercent     = userBalance.calcProfitPercentage();
            double profit            = userBalance.getProfit();
            double purchase          = userBalance.getPurchaseAmount();
            double currentTotalPrice = userBalance.getCurrentTotalPrice();

            lblBalance.Text    = totalAsset.ToString();
            lbl_percent.Text   = "0%";
            profit_txt.Text    = profit.ToString();
            purchase_txt.Text  = purchase.ToString();
            evaluated_txt.Text = currentTotalPrice.ToString();
            cash_txt.Text      = cash.ToString();
        }
예제 #4
0
        public mainForm()
        {
            InitializeComponent();
            userBalance = new balance();
            double totalAsset        = userBalance.getTotalAsset();
            double cash              = userBalance.getCash();
            double profitPercent     = userBalance.calcProfitPercentage();
            double profit            = userBalance.getProfit();
            double purchase          = userBalance.getPurchaseAmount();
            double currentTotalPrice = userBalance.getCurrentTotalPrice();

            lblBalance.Text    = totalAsset.ToString();
            lbl_percent.Text   = "0%";
            profit_txt.Text    = profit.ToString();
            purchase_txt.Text  = purchase.ToString();
            evaluated_txt.Text = currentTotalPrice.ToString();
            cash_txt.Text      = cash.ToString();
        }
예제 #5
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();
        }