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;
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (this.DataContext != null)
            {
                this.viewModel_ = this.DataContext as OTCApplicationBatchViewModel;

                this.batchItemDataGrid_.ItemsSource = this.viewModel_.WholeBatchItemViewModel_;
            }
        }
Esempio n. 3
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (this.DataContext != null)
            {
                this.viewModel_ = this.DataContext as OTCApplicationBatchViewModel;

                this.batchItemDataGrid_.ItemsSource = this.viewModel_.WholeBatchItemViewModel_;
            }
        }
        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;
        }