private void ComboBoxPropertySerialization_SelectedIndexChanged(object sender, EventArgs e) { object selectedItem = ComboBoxPropertySerialization.SelectedItem; string selectedItemAsString = selectedItem.ToString(); OptionPage.SerializationType = PropertySerializationTypeConverter.GetSerializationType(selectedItemAsString); }
public void Initialize() { CheckBoxConfirmationAlerts.Checked = OptionPage.ShouldShowConfirmationAlerts; ComboBoxPropertySerialization.SelectedItem = PropertySerializationTypeConverter.GetString(OptionPage.SerializationType); }