Example #1
0
 public static void RecreateFolders()
 {
     StockDB.DeleteRows(StockDB.dtFolderAll, "ParentId = " + 2);
     DataRow[] rowArray1 = StockDB.GetDistinctRows(StockDB.dtSymbolList, "Exchange", "not Code like '^%'");
     DataRow[] rowArray2 = rowArray1;
     for (int num1 = 0; num1 < rowArray2.Length; num1++)
     {
         DataRow row1 = rowArray2[num1];
         StockDB.LoadFolderRow(2, row1["Exchange"].ToString(), false);
     }
     StockDB.ResetFolderDatabase();
     StockDB.GetFolderDatatable();
 }
Example #2
0
 public static int DeleteListRows(string Filter)
 {
     return(StockDB.DeleteRows(StockDB.dtList, Filter));
 }
Example #3
0
 public static int DeleteSymbolRows(string Filter)
 {
     StockDB.dtSymbolListChanged = true;
     return(StockDB.DeleteRows(StockDB.dtSymbolList, Filter));
 }
Example #4
0
 public static int DeleteFolderRows(string Filter)
 {
     StockDB.dtFolderAllChanged = true;
     return(StockDB.DeleteRows(StockDB.dtFolderAll, Filter));
 }