public SingleModelo(SaveAction action) { InitializeComponent(); currentAction = action; FillMarcas(); TypeInit(); currentType = new Models.Modelos(); }
public SingleModelo(SaveAction action, Models.Modelos tipo) { InitializeComponent(); currentAction = action; FillMarcas(); TypeInit(); //Codigo de asignación textBox1.Text = tipo.Descripcion; checkBox1.Checked = tipo.Estado; if (comboBox1.FindStringExact(tipo.Marcas.Descripcion) == -1) { comboBox1.Items.Add(tipo.Marcas.Descripcion); } comboBox1.SelectedIndex = comboBox1.FindStringExact(tipo.Marcas.Descripcion); // currentType = tipo; }