那我應該怎麼修改呢?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace infoKGI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: 這行程式碼會將資料載入 'accoruntData.KGI' 資料表。您可以視需要進行移動或移除。
this.kGITableAdapter.Fill(this.accoruntData.KGI);
}
private void showToolStripButton_Click(object sender, EventArgs e)
{
try
{
this.kGITableAdapter.show(this.accoruntData.KGI);
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void btnStart_Click(object sender, EventArgs e)
{
if (btnStart.Text == "啟動")
{
this.btnStart.Text = "停止";
// if (tfcom.TradeComStatus == COM_STATUS.LOGIN_READY)
// { AddInfo("已登入,不可重複登入"); }
// else
// {
// SetLoginInfo();
// tfcom.LoginDirect("itrade.kgi.com.tw", 433, "A123456789,,password");
// }
}
else
{ this.btnStart.Text = "啟動"; }
}
}
}
|