24-06-13, 06:52 PM
السلام عليكم
PHP كود :
Private Sub radioButton1_CheckedChanged(sender As Object, e As EventArgs)
If radioButton1.Checked Then
comboBox1.Visible = True
comboBox2.Visible = InlineAssignHelper(comboBox3.Visible, False)
End If
End Sub
Private Sub radioButton2_CheckedChanged(sender As Object, e As EventArgs)
If radioButton2.Checked Then
comboBox2.Visible = True
comboBox1.Visible = InlineAssignHelper(comboBox3.Visible, False)
End If
End Sub
Private Sub radioButton3_CheckedChanged(sender As Object, e As EventArgs)
If radioButton3.Checked Then
comboBox3.Visible = True
comboBox1.Visible = InlineAssignHelper(comboBox2.Visible, False)
End If
End Sub
Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T
target = value
Return value
End Function
