public BurnAdControl(PhoneApplicationPage page, Grid content, BurnAdStartupParams startupParams)
 {
     _ApplicationId = "test_client";
        _AdUnitId = "TextAd";
     _Page = page;
     _PageGrid = content;
     _BurnAdStartupParams = startupParams;
     Setup(startupParams);
 }
        public BurnAdControl(PhoneApplicationPage page, Grid content, string adApplicaiontId, string adUnitId, BurnAdStartupParams startupParams)
        {
            _ApplicationId = adApplicaiontId;
            _AdUnitId = adUnitId;
            _Page = page;
            _PageGrid = content;

            Setup(startupParams);
        }
        private void Setup(BurnAdStartupParams startupParams)
        {
            CommonSetup();

            if (startupParams.DelayStartSeconds <= 0.0d)
            {
                if (startupParams.AppHighlight != null)
                {
                    _ErrorTimer.Interval = TimeSpan.FromSeconds(AppHighlightSeconds);
                    StartAppHighlight(startupParams.AppHighlight);
                }
                else
                {
                    StartAdControl();
                }
            }
            else
            {
                _DelayStartTimer = new DispatcherTimer{Interval = TimeSpan.FromSeconds(startupParams.DelayStartSeconds)};
                _DelayStartTimer.Tick += DelayStartTick;
                _DelayStartTimer.Start();
            }
        }