public static void FillTypeChoices(ComboBox box) { box.Items.Clear(); box.Items.Add(BackpropagationHandler.ToString(BackpropagationType.Online)); box.Items.Add(BackpropagationHandler.ToString(BackpropagationType.Batch)); box.SelectedItem = box.Items[0]; }
public void OnValueChanged_Type(object sender, EventArgs e) { if (sender is ComboBox box) { _bacpropagationType = BackpropagationHandler.ToEnum((string)box.SelectedItem); } }