using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace stuInformation
{
public partial class zsgy : Form
{
public zsgy() //構造函數
{
InitializeComponent(); //初始化窗體
}
//根據函數體的代碼,這應該是個保存按鈕
private void 學生表BindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate(); //數據有效性檢測
this.學生表BindingSource.EndEdit(); //結束數據源編輯
this.tableAdapterManager.UpdateAll(this.db1DataSet); //更新到DataSet中
}
//窗體加載時觸發
private void zsgy_Load(object sender, EventArgs e)
{
this.學生表TableAdapter.Fill(this.db1DataSet.學生表); //從數據庫的獲取數據
}
//關閉窗體時觸發
private void zsgy_FormClosed(object sender, FormClosedEventArgs e)
{
Form1.zsgyopen = true; //這個應該是自定義的屬性
}
//應該是將移動到最後壹條記錄的方法
private void bindingNavigatorMoveLastItem_Click(object sender, EventArgs e)
{
}
}
}