public static void SaveDashboard(this IObjectSpace objectSpace, DevExpress.DashboardCommon.Dashboard dashboard, IDashboardDefinition template, MemoryStream memoryStream) { dashboard.SynchronizeModel(objectSpace, template); dashboard.SaveToXml(memoryStream); dashboard.ApplyModel(FilterEnabled.Always, template, objectSpace); }