Public Class sjxxForm
Private Sub 设计信息BindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 设计信息BindingNavigatorSaveItem.Click
Me.Validate()
Me.设计信息BindingSource.EndEdit()
Me.设计信息TableAdapter.Update(Me.数据读取和存储DataSet.设计信息)
End Sub
Private Sub sjxxForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: 这行代码将数据加载到表“数据读取和存储DataSet.设计信息”中。您可以根据需要移动或移除它。
'Me.设计信息TableAdapter.Fill(Me.数据读取和存储DataSet.设计信息)
If 设计日期TextBox.Text = "" Then
Call Fuzhi()
End If
End Sub
Private Sub sjxxForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.设计信息BindingSource.EndEdit()
Me.设计信息TableAdapter.Update(Me.数据读取和存储DataSet.设计信息)
End Sub
Private Sub qdButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles qdButton.Click
Me.Hide()
Form1.Show()
End Sub
Private Sub qxButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles qxButton.Click
End
End Sub
Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click
Call Fuzhi()
End Sub
Private Sub Fuzhi()
设计者TextBox.Text = "XXX"
设计单位TextBox.Text = "XXXXXXXXXXX"
设计日期TextBox.Text = Today
设计时间TextBox.Text = TimeOfDay
Me.Validate()
Me.设计信息BindingSource.EndEdit()
Me.设计信息TableAdapter.Update(Me.数据读取和存储DataSet.设计信息)
End Sub
End Class