/// <summary> /// Initializes a new instance of the <see cref="ViewModel"/> class. /// </summary> public ViewModel() { if (ConnectionString != null) { olapDataManager = new OlapDataManager(ConnectionString); // Report creation OlapReport report = new OlapReport { Name = "Report", CurrentCubeName = olapDataManager.DataProvider.GetCubes[0].Name }; olapDataManager.AddReport(report); } }
/// <summary> /// Initializes a new instance of the <see cref="CubeBrowserViewModel"/> class. /// </summary> public CubeBrowserViewModel() { ConnectionString = CubeBrowserModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); if (ConnectionString != null) { olapDataManager = new OlapDataManager(ConnectionString); // Report creation OlapReport report = new OlapReport { Name = "Report", CurrentCubeName = olapDataManager.DataProvider.GetCubes[0].Name }; olapDataManager.AddReport(report); } }
/// <summary> /// Initializes a new instance of the <see cref="CubeBrowserViewModel"/> class. /// </summary> public CubeBrowserViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = CubeBrowserModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = CubeBrowserModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } if (ConnectionString != null) { olapDataManager = new OlapDataManager(ConnectionString); // Report creation OlapReport report = new OlapReport { Name = "Report", CurrentCubeName = olapDataManager.DataProvider.GetCubes[0].Name }; olapDataManager.AddReport(report); } }