public frmLecturista(DAC DAC, string Usuario) { this.InitializeComponent(); this._DAC = DAC; this._EDFLecturista = new Lecturista(this._DAC); this._strUsuario = Usuario; }
private void frmZonaEdificioAddUpdate_Load(object sender, EventArgs e) { try { Lecturista lecturista = new Lecturista(this._DAC); this.cboLecturista.DisplayMember = "Nombre"; this.cboLecturista.ValueMember = "Lecturista"; ((ListControl)this.cboLecturista).DataSource = (object)lecturista.ConsultarLecturistaSinAsignacionZonaEdificio(this._ZonaEdificio.LecturistaTitular); if ((int)this._bytZonaEdificio > 0) { this.cboLecturista.SelectedValue = (object)this._ZonaEdificio.LecturistaTitular; this.txtDescripcion.Text = this._ZonaEdificio.Descripcion; this.Text = "Modificar Zona - [" + this._ZonaEdificio.Descripcion.Trim() + "]"; } else { this.cboLecturista.SelectedIndex = -1; this.cboLecturista.SelectedIndex = -1; this.Text = "Agregar Zona"; } this.ActiveControl = (Control)this.txtDescripcion; } catch (Exception ex) { int num = (int)MessageBox.Show(ex.TargetSite.Name + ": " + ex.Message, "Zona...", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }