shanchu.cs
来自「Vs2005C#图书管理系统初学的看看有好处的」· CS 代码 · 共 55 行
CS
55 行
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 shanchu : Form
{
public shanchu()
{
InitializeComponent();
}
DB.ClsSQL sql = new DB.ClsSQL(".", "mylw", "sa", "", 3);
//duzheleibieguanli dzl = new duzheleibieguanli();
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 = "delete from readerc where duzheleibie='" + textBox1.Text.Trim() + "'";
sql.SQLCommand(s);
MessageBox.Show("删除成功!!!", "信息提示");
this.Close();
}
private void shanchu_Load(object sender, EventArgs e)
{
textBox1.Text = lb;
textBox2.Text = shsh;
textBox3.Text = tsh;
// MessageBox.Show("" + textBox1.Text + "");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?