private void btnInsert_Click(object sender, EventArgs e) { using (UsersBean ub = new UsersBean()) { ub.UI.SetAutoParentControl(this); ub.AllowInsertID = chbInsertID.Checked; if (ub.Insert(true)) { ub.UI.SetToAll(this); } } LoadData(); OutMsg(); }
private void btnInsert_Click(object sender, EventArgs e) { using (UsersBean ub = new UsersBean()) { MDataRow row = MDataRow.CreateFrom(ub); row.LoadFrom(false, this); row.SetToEntity(ub); if (ub.Insert(InsertOp.ID, chbInsertID.Checked)) { row.SetToAll(this); } } LoadData(); OutMsg(); }