예제 #1
0
        private void refreshAdvCompListView()
        {
            for (int i = 0; i < AppPriceCompareCtrl <AppAdvancedCompareItem> .getInstance().m_priceCompList.Count; i++)
            {
                AppAdvancedCompareItem item = AppPriceCompareCtrl <AppAdvancedCompareItem> .getInstance().m_priceCompList[i];

                listView_advcomp.Items[i].SubItems[1].Text = item.m_curPrice.ToString();
                listView_advcomp.Items[i].SubItems[2].Text = item.m_chgFromLowest.ToString();
                //listView_advcomp.Items[i].SubItems[3].Text = item.m_dynamicPE.ToString();
            }
        }
예제 #2
0
        private void rebuildAdvCompListView()
        {
            m_dirty = true;
            listView_pricecomp.Items.Clear();
            for (int i = 0; i < AppPriceCompareCtrl <AppAdvancedCompareItem> .getInstance().m_priceCompList.Count; i++)
            {
                AppAdvancedCompareItem item = AppPriceCompareCtrl <AppAdvancedCompareItem> .getInstance().m_priceCompList[i];

                ListViewItem lvi = new ListViewItem(item.m_code.ToString());
                lvi.SubItems.Add(item.m_curPrice.ToString());
                lvi.SubItems.Add(item.m_chgFromLowest.ToString());
                lvi.SubItems.Add(item.m_dynamicPE.ToString());
                lvi.SubItems.Add(item.m_peIndustry.ToString());
                lvi.SubItems.Add(item.m_roe.ToString());
                lvi.SubItems.Add(item.m_roeIndustry.ToString());
                lvi.SubItems.Add(item.m_netProfitRatio.ToString());
                lvi.SubItems.Add(item.m_nprIndustry.ToString());
                lvi.SubItems.Add(item.m_curCost.ToString());
                lvi.SubItems.Add(item.m_histCost.ToString());
                lvi.SubItems.Add(item.m_costRatio.ToString());
                listView_advcomp.Items.Add(lvi);
            }
            m_dirty = false;
        }