private void btnAddModelo_Click(object sender, System.EventArgs e) { FormPickDiplomaModelo f = new FormPickDiplomaModelo(); f.caList.AllowedNoticiaAut(TipoNoticiaAut.Modelo); f.Text = "Modelos"; f.LoadData(); if (f.caList.Items.Count > 0) { f.caList.SelectItem(f.caList.Items[0]); } if (f.ShowDialog(this) == DialogResult.OK) { CreateNewRelation(((GISADataset.ControloAutDicionarioRow)(f.caList.SelectedItems[0].Tag)).ControloAutRow); } PopulateModelos(); }
private void btnAddModelo_Click(object sender, System.EventArgs e) { FormPickDiplomaModelo f = new FormPickDiplomaModelo(); f.caList.AllowedNoticiaAut(TipoNoticiaAut.Modelo); f.Text = "Modelos"; f.LoadData(); if (f.caList.Items.Count > 0) f.caList.SelectItem(f.caList.Items[0]); if (f.ShowDialog(this) == DialogResult.OK) CreateNewRelation(((GISADataset.ControloAutDicionarioRow)(f.caList.SelectedItems[0].Tag)).ControloAutRow); PopulateModelos(); }