public static void DeleteRegList(int pid) { if (TRegList.FetchByID(pid) != null) { TRegList.Delete(pid); } }