コード例 #1
0
        void PrintResult()
        {
            foreach (string s in FoundedNextDays_)
            {
                StockRatio ratio = StringMapping_.ParseRatio(s);

                string dbgString = ratio.GetDescription();
                LogMgr.Logger.LogInfo(dbgString);
            }
        }
コード例 #2
0
        // StockRatio를 NextStockRatio로 갱신
        public void UpdateStockRatio()
        {
            LastStockPrice = StockPrice;
            StockPrice     = (long)(StockPrice * (1f + NextStockRatio * 0.01f));
            StockRatio     = NextStockRatio;
            NextStockRatio = 0;

            // ListViewItem 데이터 업데이트
            ReferenceStock.SubItems[StockColumType.StockPrice.ToString()].Text = StockPrice.ToString("N0");
            ReferenceStock.SubItems[StockColumType.StockRatio.ToString()].Text = StockRatio.ToString("N2") + "%";
        }