Пример #1
0
 private void featSubmitButton_Click(object sender, EventArgs e)
 {
     FeatTypes ft;
     Enum.TryParse<FeatTypes>(this.featTypeBox.SelectedValue.ToString(), out ft);
     this.FeatType = ft;
     this.Close();
 }
Пример #2
0
        private void featSubmitButton_Click(object sender, EventArgs e)
        {
            FeatTypes ft;

            Enum.TryParse <FeatTypes>(this.featTypeBox.SelectedValue.ToString(), out ft);
            this.FeatType = ft;
            this.Close();
        }
Пример #3
0
 public FeatTypeForm()
 {
     InitializeComponent();
     this.featTypeBox.DataSource = FeatTypes.GetValues(typeof(FeatTypes));
 }