public OTCApplicationViewModel()
        {
            SettingInitializer ini = new SettingInitializer();

            ini.initialze(1);

            DateTime d = this.loadLastPositionDate();

            ProgramVariable.ReferenceDate_ = d;

            //DataBaseConnectManager.ConnectionFactory("myDB")
            //    = DataBaseConnectManager.ConnectionFactory(EnvironmentVariable.MarketDataDBFile_);

            //ProgramVariable.CurrenctParameterSettingManager_ = new ParameterSettingManager();
            //ProgramVariable.CurrenctPricingMethodSettingManager_ = new PricingMethodSettingManager();
            //ProgramVariable.UnderlyingModelSetting_ = new UnderlyingModelSetting();

            ProgramVariable.initialize_ComboStr();

            this.applicationTab_BookViewModel_ = new OTCApplicationBookViewModel();

            //이벤트는 나중에 로드
            this.applicationTab_EventViewModel_ = new OTCApplicationEventViewModel();

            this.applicationTab_BatchViewModel_ = new OTCApplicationBatchViewModel();

            this.applicationTab_BatchViewModel_.ReferenceDate_ = ProgramVariable.ReferenceDate_;

            this.view_             = new OTCApplication();
            this.view_.DataContext = this;
        }
        public OTCApplicationViewModel()
        {
            SettingInitializer ini = new SettingInitializer();

            ini.initialze(1);

            DateTime d = this.loadLastPositionDate();

            ProgramVariable.ReferenceDate_ = d;

            //DataBaseConnectManager.ConnectionFactory("myDB")
            //    = DataBaseConnectManager.ConnectionFactory(EnvironmentVariable.MarketDataDBFile_);

            //ProgramVariable.CurrenctParameterSettingManager_ = new ParameterSettingManager();
            //ProgramVariable.CurrenctPricingMethodSettingManager_ = new PricingMethodSettingManager();
            //ProgramVariable.UnderlyingModelSetting_ = new UnderlyingModelSetting();

            ProgramVariable.initialize_ComboStr();

            this.applicationTab_BookViewModel_ = new OTCApplicationBookViewModel();

            //이벤트는 나중에 로드
            this.applicationTab_EventViewModel_ = new OTCApplicationEventViewModel();

            this.applicationTab_BatchViewModel_ = new OTCApplicationBatchViewModel();

            this.applicationTab_BatchViewModel_.ReferenceDate_ = ProgramVariable.ReferenceDate_;

            this.view_ = new OTCApplication();
            this.view_.DataContext = this;
        }