From cffabdfb8ae4e162a4183714c641da8a9ee696db Mon Sep 17 00:00:00 2001
From: kyh <1329522@naver.com>
Date: Tue, 18 Oct 2022 09:03:09 +0900
Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=EC=BB=A4=EB=B0=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Million Buyer/MainForm.Designer.cs | 90 ++++++++++++++++++++---
Million Buyer/MainForm.cs | 2 +-
Million Buyer/Million Buyer.csproj | 1 +
Million/CommonProperty.cs | 14 +++-
Million/DbMangement/DBServiceFunctions.cs | 3 +-
5 files changed, 95 insertions(+), 15 deletions(-)
diff --git a/Million Buyer/MainForm.Designer.cs b/Million Buyer/MainForm.Designer.cs
index 05fa84a..027cbb9 100644
--- a/Million Buyer/MainForm.Designer.cs
+++ b/Million Buyer/MainForm.Designer.cs
@@ -68,11 +68,17 @@
this.SellDateTimeData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
this.RateData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
this.MoneyData = new DevExpress.XtraTreeList.Columns.TreeListColumn();
- this.button1 = new System.Windows.Forms.Button();
+ this.bt_Save = new System.Windows.Forms.Button();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.lb_log = new System.Windows.Forms.ListBox();
this.bt_alive = new System.Windows.Forms.Button();
+ this.tb_CoinFullName = new System.Windows.Forms.TextBox();
+ this.tb_Money = new System.Windows.Forms.TextBox();
+ this.lb_CoinFullName = new System.Windows.Forms.Label();
+ this.lb_Money = new System.Windows.Forms.Label();
+ this.bt_Buy = new System.Windows.Forms.Button();
+ this.bt_Sell = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tl_BuyList)).BeginInit();
@@ -465,15 +471,15 @@
this.MoneyData.Visible = true;
this.MoneyData.VisibleIndex = 8;
//
- // button1
+ // bt_Save
//
- this.button1.Location = new System.Drawing.Point(17, 737);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(91, 23);
- this.button1.TabIndex = 13;
- this.button1.Text = "데이터 저장";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
+ this.bt_Save.Location = new System.Drawing.Point(17, 737);
+ this.bt_Save.Name = "bt_Save";
+ this.bt_Save.Size = new System.Drawing.Size(91, 23);
+ this.bt_Save.TabIndex = 13;
+ this.bt_Save.Text = "데이터 저장";
+ this.bt_Save.UseVisualStyleBackColor = true;
+ this.bt_Save.Click += new System.EventHandler(this.bt_Save_Click);
//
// label8
//
@@ -512,16 +518,72 @@
this.bt_alive.UseVisualStyleBackColor = true;
this.bt_alive.Click += new System.EventHandler(this.bt_alive_Click);
//
+ // tb_CoinFullName
+ //
+ this.tb_CoinFullName.Location = new System.Drawing.Point(423, 737);
+ this.tb_CoinFullName.Name = "tb_CoinFullName";
+ this.tb_CoinFullName.Size = new System.Drawing.Size(100, 21);
+ this.tb_CoinFullName.TabIndex = 17;
+ //
+ // tb_Money
+ //
+ this.tb_Money.Location = new System.Drawing.Point(606, 738);
+ this.tb_Money.Name = "tb_Money";
+ this.tb_Money.Size = new System.Drawing.Size(100, 21);
+ this.tb_Money.TabIndex = 18;
+ //
+ // lb_CoinFullName
+ //
+ this.lb_CoinFullName.AutoSize = true;
+ this.lb_CoinFullName.Location = new System.Drawing.Point(324, 742);
+ this.lb_CoinFullName.Name = "lb_CoinFullName";
+ this.lb_CoinFullName.Size = new System.Drawing.Size(93, 12);
+ this.lb_CoinFullName.TabIndex = 19;
+ this.lb_CoinFullName.Text = "Coin Full Name";
+ //
+ // lb_Money
+ //
+ this.lb_Money.AutoSize = true;
+ this.lb_Money.Location = new System.Drawing.Point(556, 742);
+ this.lb_Money.Name = "lb_Money";
+ this.lb_Money.Size = new System.Drawing.Size(44, 12);
+ this.lb_Money.TabIndex = 20;
+ this.lb_Money.Text = "Money";
+ //
+ // bt_Buy
+ //
+ this.bt_Buy.Location = new System.Drawing.Point(712, 738);
+ this.bt_Buy.Name = "bt_Buy";
+ this.bt_Buy.Size = new System.Drawing.Size(75, 23);
+ this.bt_Buy.TabIndex = 21;
+ this.bt_Buy.Text = "구매";
+ this.bt_Buy.UseVisualStyleBackColor = true;
+ //
+ // bt_Sell
+ //
+ this.bt_Sell.Location = new System.Drawing.Point(793, 738);
+ this.bt_Sell.Name = "bt_Sell";
+ this.bt_Sell.Size = new System.Drawing.Size(75, 23);
+ this.bt_Sell.TabIndex = 22;
+ this.bt_Sell.Text = "판매";
+ this.bt_Sell.UseVisualStyleBackColor = true;
+ //
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1609, 771);
+ this.Controls.Add(this.bt_Sell);
+ this.Controls.Add(this.bt_Buy);
+ this.Controls.Add(this.lb_Money);
+ this.Controls.Add(this.lb_CoinFullName);
+ this.Controls.Add(this.tb_Money);
+ this.Controls.Add(this.tb_CoinFullName);
this.Controls.Add(this.bt_alive);
this.Controls.Add(this.lb_log);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
- this.Controls.Add(this.button1);
+ this.Controls.Add(this.bt_Save);
this.Controls.Add(this.tl_Result);
this.Controls.Add(this.tl_BuyList);
this.Controls.Add(this.rd_buyer);
@@ -568,7 +630,7 @@
private System.Windows.Forms.RadioButton rd_buyer;
private DevExpress.XtraTreeList.TreeList tl_BuyList;
private DevExpress.XtraTreeList.TreeList tl_Result;
- private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button bt_Save;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private DevExpress.XtraTreeList.Columns.TreeListColumn BuyMarket;
@@ -590,6 +652,12 @@
private System.Windows.Forms.CheckBox cb_UpperMainIndi;
private System.Windows.Forms.CheckBox cb_IncludeClearIndicator;
private System.Windows.Forms.Button bt_alive;
+ private System.Windows.Forms.TextBox tb_CoinFullName;
+ private System.Windows.Forms.TextBox tb_Money;
+ private System.Windows.Forms.Label lb_CoinFullName;
+ private System.Windows.Forms.Label lb_Money;
+ private System.Windows.Forms.Button bt_Buy;
+ private System.Windows.Forms.Button bt_Sell;
}
}
diff --git a/Million Buyer/MainForm.cs b/Million Buyer/MainForm.cs
index 887bf9c..d3c90e4 100644
--- a/Million Buyer/MainForm.cs
+++ b/Million Buyer/MainForm.cs
@@ -588,7 +588,7 @@ namespace Million_Buyer
///
///
///
- private void button1_Click(object sender, EventArgs e)
+ private void bt_Save_Click(object sender, EventArgs e)
{
SaveData();
}
diff --git a/Million Buyer/Million Buyer.csproj b/Million Buyer/Million Buyer.csproj
index 5b95a3f..91519a4 100644
--- a/Million Buyer/Million Buyer.csproj
+++ b/Million Buyer/Million Buyer.csproj
@@ -129,6 +129,7 @@
MainForm.cs
+
ResXFileCodeGenerator
Resources.Designer.cs
diff --git a/Million/CommonProperty.cs b/Million/CommonProperty.cs
index 8f44967..bf6f19d 100644
--- a/Million/CommonProperty.cs
+++ b/Million/CommonProperty.cs
@@ -19,9 +19,21 @@ namespace Million
{
#region default로 가지고 있어야하는 데이터
+ public static string accessKey = "FIkdR3xF4AxJpCI16xaM6qzQkVkFeQPBNONDDMtg";
+ public static string secretKey = "Uk8iulXofcfw8EJvWY6WMoHsmWZ5GWHZ2d5uycli";
+
+ /*
+ * Key List는 어떻게 관리할 지 얘기 후 처리
public static string kyhAccessKey = "FIkdR3xF4AxJpCI16xaM6qzQkVkFeQPBNONDDMtg";
public static string kyhSecretKey = "Uk8iulXofcfw8EJvWY6WMoHsmWZ5GWHZ2d5uycli";
- public static UpbitAPI UpbitApi = new UpbitAPI(kyhAccessKey, kyhSecretKey);
+ */
+ public static UpbitAPI UpbitApi = new UpbitAPI(accessKey, secretKey);
+
+ public static void ChangeUpbitApiKey(string accessKey, string secretKey)
+ {
+ UpbitApi = new UpbitAPI(accessKey, secretKey);
+ }
+
#endregion
#region Enumable
diff --git a/Million/DbMangement/DBServiceFunctions.cs b/Million/DbMangement/DBServiceFunctions.cs
index 28ddded..d4c942e 100644
--- a/Million/DbMangement/DBServiceFunctions.cs
+++ b/Million/DbMangement/DBServiceFunctions.cs
@@ -322,8 +322,7 @@ namespace Million.DbManagement
///
/// 1분단위
- ///
- ///
+ ///
public static void InserRealTimeDataOneMThread(object marketObj)
{
var marketList = (List)marketObj;