예제 #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         CSHelper.WriteINI("robot_switch", mcbTulingRobot.Checked?"1":"0", path, "setup");
         CSHelper.WriteINI("tuling_key", txtApiKey.Text.Trim(), path, "setup");
         CSHelper.WriteINI("bot_name", txtBotName.Text.Trim(), path, "setup");
         MessageBox.Show("保存成功!");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\n\r" + ex.StackTrace);
     }
 }
예제 #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     //记录上次查询的
     CSHelper.WriteINI("LastWord", txtTableName.Text);
 }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     showDataGirdView(0);
     CSHelper.WriteINI("LastWord", txtTableName.Text);
 }