154
End Try
End If
DisconnectFromBD()
End If
End Sub
Private Sub BtnTechnicianEdit_Click(sender As System.Object, e As
System.EventArgs) Handles BtnTechnicianEdit.Click
Dim FormAddEditTech As New FormAddEditTechnician
FormAddEditTechnicianLoadCB(FormAddEditTech)
FormAddEditTech.BtnTechnicianAdd.Visible = False
FormAddEditTech.BtnTechnicianEdit.Location =
FormAddEditTech.BtnTechnicianAdd.Location
FormAddEditTech.BtnTechnicianEdit.Visible = True
FormAddEditTech.Text = "Редактирование записи"
FormAddEditTech.CBHoliday.Visible = True
IdTemp = DGVTechnician.CurrentRow.DataBoundItem(0).ToString
FormAddEditTech.TBFirstName.Text =
DGVTechnician.CurrentRow.DataBoundItem(1).ToString
FormAddEditTech.TBSecondName.Text =
DGVTechnician.CurrentRow.DataBoundItem(2).ToString
FormAddEditTech.TBLastName.Text =
DGVTechnician.CurrentRow.DataBoundItem(3).ToString
FormAddEditTech.TBJobEmail.Text =
DGVTechnician.CurrentRow.DataBoundItem(7).ToString
FormAddEditTech.TBPrivateEmail.Text =
DGVTechnician.CurrentRow.DataBoundItem(8).ToString
FormAddEditTech.TBPhone.Text =
DGVTechnician.CurrentRow.DataBoundItem(9).ToString
FormAddEditTech.TBMobile.Text =
DGVTechnician.CurrentRow.DataBoundItem(10).ToString
FormAddEditTech.CBPosition.Text =
DGVTechnician.CurrentRow.DataBoundItem(11).ToString
FormAddEditTech.RTBComment.Text =
DGVTechnician.CurrentRow.DataBoundItem(12).ToString