xiugai.cs

来自「Vs2005C#图书管理系统初学的看看有好处的」· CS 代码 · 共 53 行

CS
53
字号
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 + =
减小字号Ctrl + -
显示快捷键?