Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OlapGridDemoViewModel"/> class.
 /// </summary>
 public OlapGridDemoViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     olapDataManager = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(OlapGridDemoModel.Report());
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OlapGridDemoViewModel"/> class.
 /// </summary>
 public OlapGridDemoViewModel()
 {
     ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager  = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(OlapGridDemoModel.Report());
 }