From f3dcb2ae5ecafaf939be2cfb9afc883cad331a14 Mon Sep 17 00:00:00 2001 From: kyh <1329522@naver.com> Date: Sat, 24 Sep 2022 19:02:30 +0900 Subject: [PATCH] =?UTF-8?q?RealTime=20Verification=20Node=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Million Buyer/MainForm.cs | 8 +++++--- Million Hunter/HunterMainForm.cs | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Million Buyer/MainForm.cs b/Million Buyer/MainForm.cs index b6b686a..73f2f69 100644 --- a/Million Buyer/MainForm.cs +++ b/Million Buyer/MainForm.cs @@ -338,7 +338,7 @@ namespace Million_Buyer buyList.Remove(buyItem); //Grid 처리 - var buyNode = new TreeListNode(); + TreeListNode buyNode = null; foreach (TreeListNode node in tl_BuyList.Nodes) { @@ -360,8 +360,10 @@ namespace Million_Buyer result.SellCount, time.ToString("yyyy-MM-dd HH:mm:ss"), result.FirstEarningRate, - moneyVal - }, null); + moneyVal}, null); + + tl_BuyList.Nodes.Remove(buyNode); + lb_BuyMarketCount.Text = buyList.Count.ToString(); double totalRate = 0; diff --git a/Million Hunter/HunterMainForm.cs b/Million Hunter/HunterMainForm.cs index f496ccc..c9285ad 100644 --- a/Million Hunter/HunterMainForm.cs +++ b/Million Hunter/HunterMainForm.cs @@ -377,7 +377,8 @@ namespace Million if (buy.BuyValue < sell.SellValue) t1++; } - + _saveResultData.EndDateTime = DateTime.Now; + _saveResultData.SavedDateTime = DateTime.Now; tt /= totalResultList.Count; _saveResultData.ResultDataCount = totalResultList.Count; @@ -386,7 +387,12 @@ namespace Million _saveResultData.WinRate = winRate; _saveResultData.ProfitRate = totalVal / totalResultList.Count; _saveResultData.SearchResultList = totalResultList; - + _saveResultData.Name = _saveResultData.SavedDateTime.ToString("yyyy-MM-dd HH:mm:ss") + " Hunter Result"; + _saveResultData.Type = "Data"; + _saveResultData.SaveResultType = "Hunter"; + _saveResultData.ExchangePlace = "Upbit"; + + // 3. 자동으로 저장하기 if (DBConnection.QueryInsertExcuter_SavedResultData(_saveResultData)) MessageBox.Show("데이터 저장 성공");