private void bt_Save_Click(object sender, EventArgs e) { Servicee s = new Servicee(); s.idservicee = txtId.Text; s.servicee1 = txtService.Text; gi.Servicees.Add(s); gi.SaveChanges(); this.show(); }
public Service() { InitializeComponent(); this.s = new Servicee(); }