TuShuChaXunForm.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MF借书系统
{
public partial class TuShuChaXunForm : Form
{
private bool boolean;
public TuShuChaXunForm()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void TuShuChaXunForm_Load(object sender, EventArgs e)
{
ZhongJianChen.Class_TuShuChaXun tushu = new ZhongJianChen.Class_TuShuChaXun();
dataGridView2.DataSource = tushu.getTable();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
ZhongJianChen.Class_TuShuChaXun chaxun = new ZhongJianChen.Class_TuShuChaXun();
if (-1 == comboBox1.SelectedIndex)
{
MessageBox.Show("请选择需要查询的条件!");
return;
}
if (TiaoJian_Text.Text == "" && TiaoJian_Text.Text == null)
{
MessageBox.Show("填写的查询文字不能为空!");
return;
}
if (!boolean)
{
dataGridView1.DataSource = chaxun.qingkongTable();
MessageBox.Show("查询的条件不合法,请重新输入!");
return;
}
comboBox1.Focus();
dataGridView1.DataSource = chaxun.getTiaoJian(TiaoJian_Text.Text, comboBox1.SelectedIndex);
TiaoJian_Text.Text = "";
}
后面还有 27 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。