private void Form1_Load(object sender, EventArgs e) { Conductor conductor1 = new Conductor(); comboBox1.DataSource = Enum.GetValues(typeof(Tipo)); }
private void button2_Click(object sender, EventArgs e) { Conductor obj = new Conductor(Convert.ToInt32(textBox1.Text), textBox2.Text); }