private void btnSave_Click(object sender, EventArgs e) { stockdal.AddOrUpdate(context, _entity); stockdal.Save(context); this.Close(); }