예제 #1
0
        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!");
        }
예제 #2
0
 partial void DeleteUserList(UserList instance);
예제 #3
0
 partial void UpdateUserList(UserList instance);
예제 #4
0
 partial void InsertUserList(UserList instance);