/// <summary> /// Generates the HTML for the dashboard. /// </summary> /// <returns></returns> public string DashboardGenerator() { // Create the content for the dashboard. var content = new DashboardContentCollection { // Display the licence information. new DashboardCustomContent($"<p>The current licence status is: <strong>{this.License.LicenseStatus}</strong>.</p>"), // Display some configuration information. new DashboardCustomContent($"<p>There are <strong>{this.Configuration.CurrentConfiguration.ImportInstructions.Count}</strong> import instructions configured.</p>") }; // The status dashboard is our root object, and will handle generating the required HTML. var statusDashboard = new StatusDashboard(); // Create a panel for this content to sit in and set the content and title. var panel = new DashboardPanel() { Title = "Xml Importer", InnerContent = content }; // Add the panel to the dashboard. statusDashboard.Contents.Add(panel); //Return the dashboard HTML. return(statusDashboard.ToString()); }
public BusinessLayerResult <DashboardPanel> DashboardPanelAdded(DashboardPanel model) { BusinessLayerResult <DashboardPanel> result = new BusinessLayerResult <DashboardPanel>(); Exception ex = new Exception(); bool insertResult = _repository.Insert(model, ref ex); if (!insertResult) { result.AddError(ErrorMessageCode.TryCatchMessage, ex.Message); } result.Result = insertResult; return(result); }
public override BusinessLayerResult <DashboardPanel> DashboardPanelAdded(DashboardPanel model) { return(service.DashboardPanelAdded(model)); }
public BusinessLayerResult <DashboardPanel> DashboardPanelAdded(DashboardPanel model) { return(process.DashboardPanelAdded(model)); }
public abstract BusinessLayerResult <DashboardPanel> DashboardPanelAdded(DashboardPanel model);