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