private void altaBtn_Click(object sender, EventArgs e) { imp_data obj = new imp_data(); //we creaTe an objecti from our imp_data class DialogResult dr = MessageBox.Show("Do you want to add this Consorcio?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { obj.AddConsorcio(NameConsorcioTxt.Text, DomConsorcioTxt.Text, Convert.ToInt32(ConsorcioCpTxt.Text), CuitConsorcioTxt.Text, CategConsorcioTxt.Text, SuthernConsorcioTxt.Text, StatusConsorcioTxt.Text); } }
private void AltaCategBtn_Click(object sender, EventArgs e) { imp_data obj = new imp_data(); //we creaTe an object from our imp_data class DialogResult dr = MessageBox.Show("Do you want to add this Categoría?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { obj.AddCategRubro(Convert.ToInt32(idcategTxt.Text), namecategTxt.Text, descripcategTxt.Text); } }
private void AltaServBtn_Click(object sender, EventArgs e) { imp_data obj = new imp_data(); //we creaTe an object from our imp_data class DialogResult dr = MessageBox.Show("Do you want to add this Servicio?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { obj.AddServicio(Convert.ToInt32(idcategTxt.Text), CuitservicioTxt.Text, nameservicioTxt.Text, DomServicioTxt.Text, phoneServicioTxt.Text, emailServicioTxt.Text); } }
private void AltaBtn_Click(object sender, EventArgs e) { imp_data obj = new imp_data(); //we creaTe an object from our imp_data class DialogResult dr = MessageBox.Show("Do you want to add this Consorcista?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { obj.AddConsorcista(CuitConsorcio1Txt.Text, nameConsorcistaTxt.Text, NameConsorcio1Txt.Text, DomConsorcistaTxt.Text, phoneConsorcistaTxt.Text, emailConsorcistaTxt.Text, Convert.ToInt32(ConsorcistaCpTxt.Text), Convert.ToInt32(UFNumberTxt.Text), fdTxt.Text, Convert.ToDecimal(expenPorTxt.Text)); } }
private void DataGridServicios_Load(object sender, EventArgs e) { imp_data obj = new imp_data(); obj.getAllServicios(dGridvServ); }