/// <summary> /// Opens the Dashboard with a specific project set as the data source. /// </summary> /// <param name="projectPath">The project to open. Use the path to the PRJ file.</param> /// <param name="formName">The name of the form to open.</param> public static void OpenDashboardWithForm(string projectPath, string formName) { Project project = new Project(projectPath); if (project.Views.Contains(formName)) { View view = project.Views[formName]; Epi.Windows.Enter.AnalyticsViewer analyticsViewer = new Epi.Windows.Enter.AnalyticsViewer(null); analyticsViewer.Render(view); analyticsViewer.Show(); } }
/// <summary> /// Opens the Dashboard with a specific project set as the data source. /// </summary> /// <param name="projectPath">The project to open. Use the path to the PRJ file.</param> /// <param name="formName">The name of the form to open.</param> public static void OpenDashboardWithForm(string projectPath, string formName) { Project project = new Project(projectPath); if (project.Views.Contains(formName)) { View view = project.Views[formName]; Epi.Windows.Enter.AnalyticsViewer analyticsViewer = new Epi.Windows.Enter.AnalyticsViewer(null); analyticsViewer.Render(view); analyticsViewer.Show(); } }