private void bt_Save_Click(object sender, EventArgs e) { Modele md = new Modele(); md.idmodele = txtId.Text; md.modele1 = txtmodele.Text; gi.Modeles.Add(md); gi.SaveChanges(); this.show(); }
public Model() { InitializeComponent(); this.m = new Modele(); }