예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomizationViewModel"/> class.
 /// </summary>
 public CustomizationViewModel()
 {
     ConnectionString = CustomizationModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     if (ConnectionString != string.Empty)
     {
         this.dataManager = new OlapDataManager(ConnectionString);
         this.dataManager.SetCurrentReport(LoadOlapData());
     }
     gaugeframeType = OlapGaugeFrameType.GetGaugeFrameType();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomizationViewModel"/> class.
 /// </summary>
 public CustomizationViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = CustomizationModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = CustomizationModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     if (ConnectionString != string.Empty)
     {
         this.dataManager = new OlapDataManager(ConnectionString);
         this.dataManager.SetCurrentReport(LoadOlapData());
     }
     gaugeframeType = OlapGaugeFrameType.GetGaugeFrameType();
 }