📄 frmeditrepair_repairperson.vb
字号:
Friend Class FrmEditRepair_RepairPerson
Inherits System.Windows.Forms.Form
Private Sub cmdExit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs)
Me.Close()
End Sub
Private Sub BtnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOK.Click
Dim TempDBRepair As New DBRepair
TempDBRepair.RepairPerson = Me.TxtRepairPerson.Text
DGVResult.DataSource = TempDBRepair.LoadRepair(4)
End Sub
Private Sub DGVResult_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGVResult.CellContentDoubleClick
Dim FrmObj As New FrmAddRepair
FrmObj.AddOrEditFlag = False
FrmObj.RepairNo = DGVResult.Rows(e.RowIndex).Cells(0).Value
Me.WindowState = FormWindowState.Minimized
FrmObj.ShowDialog(Me.Parent)
Me.WindowState = FormWindowState.Normal
Dim TempDBRepair As New DBRepair
TempDBRepair.RepairPerson = Me.TxtRepairPerson.Text
DGVResult.DataSource = TempDBRepair.LoadRepair(4)
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -