/// <summary> /// Initializes a new instance of the <see cref="GPAnalysisDashboardViewModel"/> class. /// </summary> public GPAnalysisDashboardViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = GPAnalysisDashboardModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = GPAnalysisDashboardModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(ProductSalesAnalysis()); }
/// <summary> /// Initializes a new instance of the <see cref="GPAnalysisDashboardViewModel"/> class. /// </summary> public GPAnalysisDashboardViewModel() { ConnectionString = GPAnalysisDashboardModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(ProductSalesAnalysis()); }