//private void bt_Save_Click(object sender, EventArgs e) //{ //} //private void button1_Click(object sender, EventArgs e) //{ //} //private void bt_Search_Click(object sender, EventArgs e) //{ //} //private void button2_Click(object sender, EventArgs e) //{ ////} //private void button3_Click(object sender, EventArgs e) //{ //} //private void bt_Cancel_Click(object sender, EventArgs e) //{ // this.Close(); //} //private void dgv_CellContentClick(object sender, DataGridViewCellEventArgs e) //{ //} private void bt_Save_Click_1(object sender, EventArgs e) { Famille f = new Famille(); f.idfamille = txtId.Text; f.famille1 = txtfamille.Text; gi.Familles.Add(f); gi.SaveChanges(); this.show(); MessageBox.Show("Cette famille a été bien ajouter", "Ajouter"); }
public Family() { InitializeComponent(); this.fa = new Famille(); }