📄 xiugai.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace tsh
{
public partial class xiugai : Form
{
public xiugai()
{
InitializeComponent();
}
DB.ClsSQL sql = new DB.ClsSQL(".", "mylw", "sa", "", 3);
private string lb;
private string shsh;
private string tsh;
public string Lb
{
get { return lb; }
set { lb = value; }
}
public string Shushu
{
get { return shsh; }
set { shsh = value; }
}
public string Tsh
{
get { return tsh; }
set { tsh = value; }
}
private void button1_Click(object sender, EventArgs e)
{
string s = "update readerc set kejieshushu='"+textBox2.Text.Trim()+"',kejietianshu='"+textBox3.Text.Trim()+"' where duzheleibie='" + textBox1.Text.Trim() + "'";
sql.SQLCommand(s);
MessageBox.Show("修改成功!!!", "信息提示");
this.Close();
}
private void xiugai_Load(object sender, EventArgs e)
{
textBox1.Text = lb;
textBox2.Text = shsh;
textBox3.Text = tsh;
textBox1.ReadOnly = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -