⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 duzheleibieguanli.cs

📁 Vs2005C#图书管理系统初学的看看有好处的
💻 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 duzheleibieguanli : Form
    {
        public duzheleibieguanli()
        {
            InitializeComponent();
        }
        DB.ClsSQL sql = new DB.ClsSQL(".", "mylw", "sa", "", 3);
        //shanchu shch = new shanchu();
      // DataSet ds;
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void duzheleibieguanli_Load(object sender, EventArgs e)
        {
            string s = "select * from readerc";
            //ds = sql.DBToDS(s, "readerc");
            //dataGridView1.DataSource = ds.Tables["readerc"];
            sql.DBToDG(s,dataGridView1,"readerc");
            
           
        }
       
        private void dataGridView1_MouseClick(object sender, MouseEventArgs e)
        {
           
           // MessageBox.Show(tsh);
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            shanchu Sc = new shanchu();
            Sc.Lb = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            Sc.Shushu = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            Sc.Tsh = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            
            Sc.Owner = this;
            Sc.ShowDialog();
            
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            xiugai Xg = new xiugai();
            Xg.Lb = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            Xg.Shushu = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            Xg.Tsh = dataGridView1.CurrentRow.Cells[2].Value.ToString();

            Xg.Owner = this;
            Xg.ShowDialog();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            tianjia Tj = new tianjia();
            Tj.Owner = this;
            Tj.ShowDialog();
        }

        private void duzheleibieguanli_Resize(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string s = "select * from readerc";
           
            sql.DBToDG(s, dataGridView1, "readerc");
        }

        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -