Occurs when a radiobutton part (RadioButtonPartClass) is clicked.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public event RadioButtonEventHandler RadioButtonClicked;
Public Event RadioButtonClicked As RadioButtonEventHandlerOccurs when a radiobutton part (RadioButtonPartClass) is clicked.
// changing the checkbox state doesn't automatically call the CheckBoxClicked event
CellClass owningCell = (CellClass)cb.PartOwner;
ItemClass owningItem = owningCell.OwningItem;
sftTree1_CheckBoxClicked(this, new PartEventArgs(owningItem, owningCell, null, cb));
} else if (gp is RadioButtonPartClass) {
RadioButtonPartClass rb = (RadioButtonPartClass)gp;
if (sftTree1.PerformClick_RadioButtonPart(rb)) {
e.Handled = true;
// changing the radiobutton state doesn't automatically call the RadioButtonClicked event
CellClass owningCell = (CellClass) rb.PartOwner;
ItemClass owningItem = owningCell.OwningItem;
sftTree1_RadioButtonClicked(this, new PartEventArgs(owningItem, owningCell, null, rb));
}
}
}
}
' changing the checkbox state doesn't automatically call the CheckBoxClicked event
Dim owningCell As CellClass = cb.PartOwner
Dim owningItem As ItemClass = owningCell.OwningItem
SftTree1_CheckBoxClicked(Me, New PartEventArgs(owningItem, owningCell, Nothing, cb))
ElseIf TypeOf gp Is RadioButtonPartClass Then
Dim rb As RadioButtonPartClass = gp
If SftTree1.PerformClick_RadioButtonPart(rb) Then
e.Handled = True
' changing the radiobutton state doesn't automatically call the RadioButtonClicked event
Dim owningCell As CellClass = rb.PartOwner
Dim owningItem As ItemClass = owningCell.OwningItem
SftTree1_RadioButtonClicked(Me, New PartEventArgs(owningItem, owningCell, Nothing, rb))
End If
End If
End If
End IfSee Also SftTree Class | Classes | SftTree/NET 2.0