private void EditDashboard(IAnalyticsDashboard dashboard)
 {
     if (DialogService != null)
     {
         string caption = GetLocalResourceObject("btnAddDashboard.Caption").ToString();
         if (dashboard != null && dashboard.Id != null)
         {
             caption = GetLocalResourceObject("grdDashboards.Edit.Column").ToString();
         }
         DialogService.SetSpecs(200, 200, 200, 400, "AddEditAnalyticsDashboard", caption, true);
         DialogService.EntityType = typeof(IAnalyticsDashboard);
         if (dashboard != null && dashboard.Id != null)
         {
             DialogService.EntityID = dashboard.Id.ToString();
         }
         DialogService.ShowDialog();
     }
 }
 protected void TestDashboard(IAnalyticsDashboard dashbaord)
 {
     AnalyticsService srv = new AnalyticsService();
     AnalyticsSystemInfo = srv.GetAnalyticsSystemInfo();
     var ctx = srv.CreateAuthorizationContext();
     string dashboardPath = dashbaord.Path;
     string url = string.Format(@"{0}/SLXDashboard.aspx?file={1}&AuthId={2}", AnalyticsSystemInfo.WebPlayerUrl, HttpUtility.UrlEncode(dashboardPath), ctx.AuthId);
     TestUrl(url);
 }