/// <summary> /// Form load event /// </summary> protected override void OnLoad(EventArgs e) { base.OnLoad(e); ScrappingForm.mainform = this; this.dataGridView1.ColumnCount = 6; this.dataGridView1.Columns[0].Name = "SHOP_CODE"; this.dataGridView1.Columns[1].Name = "ID"; this.dataGridView1.Columns[2].Name = "PW"; this.dataGridView1.Columns[3].Name = "SCRAP_CODE"; this.dataGridView1.Columns[4].Name = "START_TIME"; this.dataGridView1.Columns[5].Name = "STATE"; this.textBox1.Text = "10000"; this.textBox2.Text = "Stop"; this.textBox2.BackColor = Color.Red; this.comboBox1.SelectedValueChanged += comboBox1_SelectedValueChanged; //this.timer.Tick += timer_Tick; //TODO: this code is thing for test. this.comboBox1.Items.Add(1); this.comboBox1.Items.Add(30); this.comboBox1.Items.Add(60); this.comboBox1.Items.Add(90); //this.comboBox1.SelectedItem = 60; //TODO: this code is thing for test. this.comboBox1.SelectedItem = 1; ScrapKindDic.Add("001", typeof(Gmarket)); ScrapKindDic.Add("002", typeof(Domekuk)); ScrapKindDic.Add("006", typeof(Auction)); ScrapKindDic.Add("999", typeof(Sample)); }
public void ErrorLog(object message) { if (message != null) { ScrappingForm.SetFormLog("Error - " + message.ToString()); LOG.Error(message); } }
public void InfoLog(object message) { if (message != null) { ScrappingForm.SetFormLog("Info - " + message.ToString()); LOG.Info(message); } }