Occurs when a part's action is triggered by the user.
Class: GenericPartClass
Namespace: Softelvdm.SftDateNET.Controls
Assembly: Softelvdm.SftDateNET
public event ActionEventHandler Action;
Public Event Action As ActionEventHandlerOccurs when a part's action is triggered by the user.
An Action event occurs when the user clicks on the part. All parts except for the gap part (GapPartClass) generate this event.
private void FillCombo(ComboBox combo, Type enumType, object current) {
foreach (object value in Enum.GetValues(enumType))
combo.Items.Add(value);
combo.SelectedItem = current;
}
// The options apply to all fields and the calendar; a field's Calendar property defines its dropdown calendar.
private void ForEachCalendar(Action<CalendarClass> action) {
foreach (SftDate field in fields)
action(field.Calendar);
action(sftCalendar1.Calendar);
}
private CultureInfo SelectedCulture() {
CultureInfo culture;
switch (comboCulture.SelectedIndex) {See Also GenericPartClass Class | Classes | SftDate/NET 3.0