示例#1
0
 public static void Open()
 {
     if (!Directory.Exists(StockDB.DataPath))
     {
         Directory.CreateDirectory(StockDB.DataPath);
     }
     if (!Directory.Exists(StockDB.HistoricalPath))
     {
         Directory.CreateDirectory(StockDB.HistoricalPath);
     }
     StockDB.CreateDBSchema();
     StockDB.LoadDB(StockDB.dtSymbolList);
     StockDB.LoadDB(StockDB.dtFolderAll);
     StockDB.LoadDB(StockDB.dtFolderRel);
     StockDB.RecreateFolders();
 }