Exemplo n.º 1
0
 public static void DeleteFolderRelRows(object Code, int FolderId)
 {
     object[] objArray1 = new object[5] {
         "FolderId=", FolderId, " and Code='", Code, "'"
     };
     StockDB.DeleteFolderRelRows(string.Concat(objArray1));
 }
Exemplo n.º 2
0
 private void miDeleteFavorite_Click(object sender, EventArgs e)
 {
     if (this.dgList.CurrentRowIndex >= 0)
     {
         StockDB.DeleteFolderRelRows(this.GetSelectedSymbol(), this.FolderId);
     }
     this.RefreshData();
 }
Exemplo n.º 3
0
 public static int DeleteFolderRows(int FolderId, bool DeleteRel)
 {
     if (DeleteRel)
     {
         StockDB.DeleteFolderRelRows("FolderId=" + FolderId);
     }
     DataRow[] rowArray1 = StockDB.GetDataRows(StockDB.dtFolderAll, "ParentId=" + FolderId);
     DataRow[] rowArray2 = rowArray1;
     for (int num2 = 0; num2 < rowArray2.Length; num2++)
     {
         DataRow row1 = rowArray2[num2];
         StockDB.DeleteFolderRows((int)row1["FolderId"], DeleteRel);
     }
     return(StockDB.DeleteFolderRows("ParentId=" + FolderId));
 }
Exemplo n.º 4
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (this.CanDelete)
     {
         int num1 = (int)this.CurrentRow["ParentId"];
         int num2 = (int)this.CurrentRow["FolderId"];
         StockDB.DeleteFolderRows("FolderId=" + num2);
         StockDB.DeleteFolderRelRows("FolderId=" + num2);
         StockDB.ResetFolderDatabase();
         num2 = StockDB.GetMaxFolderId(num1.ToString());
         if (num2 == 0)
         {
             num2 = num1;
         }
         ListForm.Current.FolderId = num2;
         this.CreateTree();
     }
 }
Exemplo n.º 5
0
 public static int DeleteSymbol(string Symbol)
 {
     StockDB.DeleteListRows("Code='" + Symbol + "'");
     StockDB.DeleteSymbolRows("Code='" + Symbol + "'");
     return(StockDB.DeleteFolderRelRows("Code='" + Symbol + "'"));
 }