void dismissGroupDetail()
        {
            viewState = VIEWSTATE_ALL_NHOMNGANH;
            chartG    = null;

            invalidate();
        }
        //==========================================
        void showDetailOfGroup(stShareGroup g)
        {
            viewState = VIEWSTATE_1_NHOMNGANH;

            if (g.getTotal() == 1 &&
                (g.getName().CompareTo("^VNINDEX") == 0 ||
                 g.getName().CompareTo("^HASTC") == 0 ||
                 g.getName().CompareTo("^UPCOM") == 0))
            {
                int   cnt    = mContext.mShareManager.getShareCount();
                int[] market = { 0 };

                int marketID = 1;
                if (g.getName().CompareTo("^HASTC") == 0)
                {
                    marketID = 2;
                }
                else if (g.getName().CompareTo("^UPCOM") == 0)
                {
                    marketID = 3;
                }

                for (int i = 0; i < cnt; i++)
                {
                    int shareID = mContext.mShareManager.getShareIDAt(i, market);

                    if (shareID > 0 && market[0] == marketID)
                    {
                        g.addCode(mContext.mShareManager.getShareCode(shareID));
                    }
                }
            }

            chartG = new ChartTangtruongGroup();

            chartG.setGroup(g);
            chartG.setPosition(0, 0);

            chartG.onBack += dismissGroupDetail;
            //chartG.setSize(mPriceboardContainer);

            int h = getH();// chartG.estimateH(getH(), g.getTotal());

            if (h < getH())
            {
                h = getH();
            }
            //list.setSize(W_PRICEBOARD, mPriceboardH);
            chartG.setSize(getW() - 20, h);

            chartG.onBack                += dismissGroupDetail;
            chartG.onHistoryClick        += delegateShowHistoryChartOfGroup;
            chartG.onClickShare          += delegateShowHistoryChartOfShare;
            chartG.onProcessingCompleted += onProcessingCompleted;
            chartG.onProcessingStart     += onProcessingStart;

            invalidate();
        }