private void btnUpdate_Click(object sender, EventArgs e) { using (UsersBean ub = new UsersBean()) { ub.UI.SetAutoParentControl(this); ub.Update(txtUserID, true); } LoadData(); OutMsg(); }
private void btnUpdate_Click(object sender, EventArgs e) { using (UsersBean ub = new UsersBean()) { MDataRow row = MDataRow.CreateFrom(ub); row.LoadFrom(false, this); row.SetToEntity(ub); ub.Update(); } LoadData(); OutMsg(); }