private void btnUjTartozek_Click(object sender, EventArgs e) { if (cIKKBindingSource.Current != null) { frmCikkReceptAd fca = new frmCikkReceptAd(); fca.Parent_cikk_id = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"]; fca.ShowDialog(); taReceptCikkek.Fill(dsReceptCikkek.RECEPT, (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"]); } }
private void btnReceptCikkModosit_Click(object sender, EventArgs e) { if (cIKKBindingSource.Current != null) { frmCikkReceptAd fca = new frmCikkReceptAd(); fca.Parent_cikk_id = (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"]; fca.load_cikk_id = (int)((DataRowView)bsReceptCikkek.Current)["OSSZ_CIKK_TARTOZEK_ID"]; fca.ShowDialog(); taReceptCikkek.Fill(dsReceptCikkek.RECEPT, (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"]); } }
private void button4_Click(object sender, EventArgs e) { if (cIKKBindingSource.Current != null) { frmCikkReceptAd fca = new frmCikkReceptAd(); fca.rECEPTTableAdapter.Delete((int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"], (int)((DataRowView)bsReceptCikkek.Current)["OSSZ_CIKK_TARTOZEK_ID"]); fca.Dispose(); taReceptCikkek.Fill(dsReceptCikkek.RECEPT, (int)((DataRowView)cIKKBindingSource.Current)["CIKK_ID"]); } }