Private Sub pieza1_Click(Index As Integer)
Select Case value_odonto
Case 3: 'extraidas
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xazul.gif")
x(Index).Tag = 3
Case 2: 'por extraer
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xrojo.gif")
x(Index).Tag = 2
Case 1: 'caries obturadas
pieza1(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza1a.gif")
pieza1(Index).Tag = 1
Case 0: 'caries por obturar
pieza1(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza1r.gif")
pieza1(Index).Tag = 0
End Select
End Sub
Private Sub pieza2_Click(Index As Integer)
Select Case value_odonto
Case 3: 'extraidas
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xazul.gif")
x(Index).Tag = 3
Case 2: 'por extraer
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xrojo.gif")
x(Index).Tag = 2
Case 1: 'caries obturadas
pieza2(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza2a.gif")
pieza2(Index).Tag = 1
Case 0: 'caries por obturar
pieza2(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza2r.gif")
pieza2(Index).Tag = 0
End Select
End Sub
Private Sub pieza3_Click(Index As Integer)
Select Case value_odonto
Case 3: 'extraidas
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xazul.gif")
x(Index).Tag = 3
Case 2: 'por extraer
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xrojo.gif")
x(Index).Tag = 2
Case 1: 'caries obturadas
pieza3(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza3a.gif")
pieza3(Index).Tag = 1
Case 0: 'caries por obturar
pieza3(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza3r.gif")
pieza3(Index).Tag = 0
End Select
End Sub
Private Sub pieza4_Click(Index As Integer)
Select Case value_odonto
Case 3: 'extraidas
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xazul.gif")
x(Index).Tag = 3
Case 2: 'por extraer
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xrojo.gif")
x(Index).Tag = 2
Case 1: 'caries obturadas
pieza4(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza4a.gif")
pieza4(Index).Tag = 1
Case 0: 'caries por obturar
pieza4(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza4r.gif")
pieza4(Index).Tag = 0
End Select
End Sub
Private Sub pieza5_Click(Index As Integer)
Select Case value_odonto
Case 3: 'extraidas
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xazul.gif")
x(Index).Tag = 3
Case 2: 'por extraer
x(Index).Picture = LoadPicture(App.Path + "\odontograma\xrojo.gif")
x(Index).Tag = 2
Case 1: 'caries obturadas
pieza5(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza5a.gif")
pieza5(Index).Tag = 1
Case 0: 'caries por obturar
pieza5(Index).Picture = LoadPicture(App.Path + "\odontograma\pieza5r.gif")
pieza5(Index).Tag = 0
End Select
End Sub