public PugetSoundBoxViewModel()
        {
            XMLgetter getData = new XMLgetter();

            getData.InitializeXMLData();

            theBoxData = getData.observeableBoxes;

            //_sliderValue = new ObservabelDoubleValue(20.0);
            _sliderValue = 60.0;

            _currentBoxes = getCurrent(_sliderValue);
               // currentBoxes = new boxDataSource();
            _boxData = new getBoxData(currentBoxes);
            _boxData.getAreaData(currentBoxes);
            _boxData.getUGAData(currentBoxes);
            _boxData.getUGACngData(currentBoxes);
            _boxData.getAreaCngData(currentBoxes);
            SliderValue = _sliderValue;
        }
        public void getAreaData(boxDataSource bData, getBoxData bd)
        {
            double _scalingFactor = 20.0;
            double goldHeight = bData.hpheArea / (400 * _scalingFactor);
            double blueHeight = bData.lpheArea / (600 * _scalingFactor);
            double maxHeight = (goldHeight > blueHeight) ? goldHeight : blueHeight;
            bd.goldArea.top = maxHeight - goldHeight;
            bd.goldArea.height = goldHeight;
            bd.goldArea.width = 400.0;
            bd.goldArea.left = 0;

            bd.blueArea.top = maxHeight - blueHeight;
            bd.blueArea.height = blueHeight;
            bd.blueArea.width = 600.0;
            bd.blueArea.left = 400.0;

            bd.redArea.height = bData.hpleArea / (400 * _scalingFactor);
            bd.redArea.top = maxHeight;
            bd.redArea.left = 0.0;
            bd.redArea.width = 400.0;

            bd.greenArea.height = ((bData.lpleArea / (600.00 * _scalingFactor)) > bd.redArea.height) ? (bData.lpleArea / (600.00 * _scalingFactor)) : bd.redArea.height;
            bd.greenArea.width = bData.lpleArea / (bd.greenArea.height * _scalingFactor);
            bd.greenArea.top = maxHeight;
            bd.greenArea.left = 400.0;
        }