private void Form1_Load(object sender, EventArgs e) { c_FormaPago cfp = new c_FormaPago(); this.comboBox1.DataSource = cfp.Lista(); this.comboBox1.DisplayMember = "Descripcion"; this.comboBox1.ValueMember = "Id"; C_Aduana ca = new C_Aduana(); this.comboBox2.DataSource = ca.Lista(); this.comboBox2.DisplayMember = "Descripcion"; this.comboBox2.ValueMember = "Id"; C_ClaveProdServ ccps = new C_ClaveProdServ(); this.comboBox3.DataSource = ccps.Lista(); this.comboBox3.DisplayMember = "Descripcion"; this.comboBox3.ValueMember = "Id"; C_ClaveUnidad ccu = new C_ClaveUnidad(); this.comboBox4.DataSource = ccu.Lista(); this.comboBox4.DisplayMember = "Nombre"; this.comboBox4.ValueMember = "Id"; }
public static string GetString(this c_FormaPago value) { return(GetXmlEnumAttributeValueFromEnum <c_FormaPago>(value)); }