public OTCApplicationBookViewModel()
        {
            RootBookViewModel.setRootBookReferenceDate(ProgramVariable.ReferenceDate_);

            BookFolderView bfv = new BookFolderView();

            bfv.ReferenceDate_ = ProgramVariable.ReferenceDate_;
            bfv.positionXmlReload();

            this.view_ = bfv;
        }
        public OTCApplicationBookViewModel()
        {
            RootBookViewModel.setRootBookReferenceDate(ProgramVariable.ReferenceDate_);

            BookFolderView bfv = new BookFolderView();

            bfv.ReferenceDate_ = ProgramVariable.ReferenceDate_;
            bfv.positionXmlReload();

            this.view_ = bfv;

        }
        private void treeViewTestBtn_Click(object sender, RoutedEventArgs e)
        {
            //System.GC.Collect();

            DataBaseConnectManager.DBConnection_
                = DataBaseConnectManager.ConnectionFactory(EnvironmentVariable.MarketDataDBFile_);

            //EVENT_INFO_Table_DAOManager d = new EVENT_INFO_Table_DAOManager();

            //d.delete(DataBaseConnectManager.DBConnection_);
            
            ProgramVariable.initialize_CurrencyStringList();

            RootBookViewModel.setRootBookReferenceDate(DateTime.Now);

            BookFolderView bfv = new BookFolderView();

            bfv.ReferenceDate_ = this.loadLastPositionDate();
            bfv.positionXmlReload();

            //RootBookViewModel root_bvm = new RootBookViewModel();

            //root_bvm.loadPosition();

            //RootFavoriteViewModel root_fvm = new RootFavoriteViewModel();

            //root_fvm.loadPosition();

            //bfv.RootBookViewModel_ = root_bvm;
            //bfv.RootFavoriteViewModel_ = root_fvm;

            Window w = new Window();
            w.Width = 600;
            w.Height = 400;
            w.Content = bfv;
            w.Visibility = 0;

        }