private void buttonCreateAccount_Click(object sender, EventArgs e) { UserList ul = new UserList(); ul.UserId = textUserID.Text; ul.Name = textName.Text; ul.Password = textPassword.Text; ul.ContactNo = textContactNo.Text; if (radioRenter.Checked) { ul.UserType = radioRenter.Text; } if (radioLandower.Checked) { ul.UserType = radioLandower.Text; } db.UserLists.InsertOnSubmit(ul); db.SubmitChanges(); MessageBox.Show("Account Created!"); }
partial void DeleteUserList(UserList instance);
partial void UpdateUserList(UserList instance);
partial void InsertUserList(UserList instance);