internal void EditTextField(int pk, string name, string value) { var item = db.GetText(pk); switch (name) { case "name": item.name = value; break; case "code": item.code = value; break; case "categoryName": item.categoryID = RDL.Convert.StrToInt(value, 0); break; case "text": item.text = value; break; } SaveText(item); }