private void btn_guardar_contrase_Click(object sender, EventArgs e) { cls_Combustible_BLL obj_Combustible_BLL = new cls_Combustible_BLL(); obj_Combustible_DAL.sDescripcion = txt_descrip.Text; string tempo = cbx_estado.SelectedItem.ToString(); if (tempo == "Activo") { obj_Combustible_DAL.cEstado = '1'; } else { obj_Combustible_DAL.cEstado = '0'; } obj_Combustible_DAL.iCod_EmpleCreador = 1; //Esta quemado porque no puedo validar aún el usuario obj_Combustible_DAL.FechaCreado = DateTime.Today; obj_Combustible_BLL.Insert_Combustible(ref obj_Combustible_DAL); if (obj_Combustible_DAL.sMgsError == string.Empty) { obj_Combustible_DAL.cBanOpc = 'U'; MessageBox.Show("Creación de combustible Exitoso", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { obj_Combustible_DAL.cBanOpc = 'I'; MessageBox.Show("Creación de combustible Fallida \n\n Error:[ " + obj_Combustible_DAL.sMgsError + " ]", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } this.Dispose(); }