private void LoadPieChartChi()
        {
            //Load Lại tiền sau khi chỉnh sữa ở các page khác
            luong  = NhanVienDAO.Instance.GetLuong();
            nhapXe = CTHDNhapDAO.Instance.GetNhapXe();
            nhapPT = CTHDNhapDAO.Instance.GetNhapPT();

            Func <ChartPoint, string> labelPoint2 = chartpoint2 => string.Format("{0}, ({1:P})", chartpoint2.Y, chartpoint2.Participation);

            pieChartChi.LegendLocation = LegendLocation.Bottom;

            SeriesCollection series2  = new SeriesCollection();
            bieuDo           bdLuong  = new bieuDo("Lương", luong);
            bieuDo           bdNhapXe = new bieuDo("Nhập Xe", nhapXe);
            bieuDo           bdNhapPT = new bieuDo("Nhập Phụ Tùng", nhapPT);

            bieuDo[] test2 = new bieuDo[] { bdLuong, bdNhapXe, bdNhapPT };
            foreach (var obj in test2)
            {
                series2.Add(new PieSeries()
                {
                    Title  = obj.ten,
                    Values = new ChartValues <int> {
                        (int)(obj.gia)
                    },
                    DataLabels = true,
                    LabelPoint = labelPoint2
                });
            }
            pieChartChi.Series = series2;
        }
        private void LoadPieChartThu()
        {
            //Load Lại tiền sau khi chỉnh sữa ở các page khác
            banXe = CTHDBanDAO.Instance.GetBanXe();
            banPT = CTHDBanDAO.Instance.GetBanPT();

            Func <ChartPoint, string> labelPoint = chartpoint => string.Format("{0}, ({1:P})", chartpoint.Y, chartpoint.Participation);

            pieChartThu.LegendLocation = LegendLocation.Bottom;

            SeriesCollection series  = new SeriesCollection();
            bieuDo           bdBanXe = new bieuDo("Bán Xe", banXe);
            bieuDo           bdBanPT = new bieuDo("Bán Phụ Tùng", banPT);

            bieuDo[] test = new bieuDo[] { bdBanXe, bdBanPT };
            foreach (var obj in test)
            {
                series.Add(new PieSeries()
                {
                    Title  = obj.ten,
                    Values = new ChartValues <int> {
                        (int)(obj.gia)
                    },
                    DataLabels = true,
                    LabelPoint = labelPoint
                });
            }
            pieChartThu.Series = series;
        }