xk/frmCourse.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 xk
{
public partial class frmCourse : Form
{
private static frmCourse _Instance = null;
public static frmCourse Instance()
{
if (_Instance == null)
{
_Instance = new frmCourse();
}
return _Instance;
}
private frmCourse()
{
InitializeComponent();
}
private void courseBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.courseBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.系部数据);
}
private void frmCourse_Load(object sender, EventArgs e)
{
// TODO: 这行代码将数据加载到表“系部数据.Course”中。您可以根据需要移动或删除它。
this.courseTableAdapter.Fill(this.系部数据.Course);
}
private void ChangeEnabledState()
{
courseBindingNavigator.Enabled = !courseBindingNavigator.Enabled;
foreach (ToolStripItem b in tsControl.Items)
{
b.Enabled = !b.Enabled;
}
foreach (Control c in gdEdit.Controls)
{
if (c is TextBox)
((TextBox)c).ReadOnly = !((TextBox)c).ReadOnly;
}
}
private void tsInsert_Click(object sender, EventArgs e)
{
ChangeEnabledState();
courseBindingSource.AddNew();
counoTextBox.Focus();
后面还有 36 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。