private void featSubmitButton_Click(object sender, EventArgs e) { FeatTypes ft; Enum.TryParse<FeatTypes>(this.featTypeBox.SelectedValue.ToString(), out ft); this.FeatType = ft; this.Close(); }
private void featSubmitButton_Click(object sender, EventArgs e) { FeatTypes ft; Enum.TryParse <FeatTypes>(this.featTypeBox.SelectedValue.ToString(), out ft); this.FeatType = ft; this.Close(); }
public FeatTypeForm() { InitializeComponent(); this.featTypeBox.DataSource = FeatTypes.GetValues(typeof(FeatTypes)); }