From babcdb918c439c4c87b8d59b9b83a64845ee17d6 Mon Sep 17 00:00:00 2001 From: mjjo Date: Fri, 27 Jan 2017 01:29:02 +0900 Subject: [PATCH] =?UTF-8?q?-=20=EB=B2=84=EC=A0=84=20=EC=B6=94=EA=B0=80=20-?= =?UTF-8?q?=20=EC=98=81=EC=97=85=EC=9D=B4=EC=9D=B5=EB=A5=A0=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C=20=EC=95=88=EB=90=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConfigForm.Designer.cs | 13 +++++++++++++ ConfigForm.cs | 1 + Crawler.cs | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ConfigForm.Designer.cs b/ConfigForm.Designer.cs index 259b08b..4a4a177 100644 --- a/ConfigForm.Designer.cs +++ b/ConfigForm.Designer.cs @@ -69,6 +69,7 @@ this.label7 = new System.Windows.Forms.Label(); this.tbRevenueRate = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox6.SuspendLayout(); @@ -507,11 +508,21 @@ this.label8.TabIndex = 3; this.label8.Text = "영업(잠정)실적"; // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(8, 420); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(132, 12); + this.label9.TabIndex = 20; + this.label9.Text = "Version : 2017.01.27.01"; + // // ConfigForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(548, 441); + this.Controls.Add(this.label9); this.Controls.Add(this.groupBox12); this.Controls.Add(this.groupBox11); this.Controls.Add(this.groupBox10); @@ -541,6 +552,7 @@ this.groupBox12.ResumeLayout(false); this.groupBox12.PerformLayout(); this.ResumeLayout(false); + this.PerformLayout(); } @@ -586,5 +598,6 @@ private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox tbRevenueRate; private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label9; } } \ No newline at end of file diff --git a/ConfigForm.cs b/ConfigForm.cs index 3d1a93b..70d0ee5 100644 --- a/ConfigForm.cs +++ b/ConfigForm.cs @@ -28,6 +28,7 @@ namespace NewsCrawler cbAccount.SelectedItem = Config.GetAccount(); tbSupplyContractRate.Text = Config.GetSupplyContractRate().ToString(); + tbRevenueRate.Text = Config.GetRevenueRate().ToString(); } private void OpenFile(string strName) diff --git a/Crawler.cs b/Crawler.cs index e601a47..4f25a18 100644 --- a/Crawler.cs +++ b/Crawler.cs @@ -56,9 +56,9 @@ namespace NewsCrawler try { string strServerURL = "http://www.asiae.co.kr"; - using (HttpWebResponse response = (HttpWebResponse)HttpReq.GetResponse()) + using(HttpWebResponse response = (HttpWebResponse)HttpReq.GetResponse()) { - using (Stream dataStream = response.GetResponseStream()) + using(Stream dataStream = response.GetResponseStream()) { using(StreamReader reader = new StreamReader(dataStream, Encoding.GetEncoding("EUC-KR"))) {