X-Git-Url: https://fbox.kageds.com/gitweb/NEATEST.git/blobdiff_plain/61e61981825c73f098cea957e65c7c49dc20cbda..20dbf92bc0579668c40523cd06f2add91ddf9b98:/NEA/SignUp.xaml.vb?ds=sidebyside diff --git a/NEA/SignUp.xaml.vb b/NEA/SignUp.xaml.vb index ce33a2e..05ff931 100644 --- a/NEA/SignUp.xaml.vb +++ b/NEA/SignUp.xaml.vb @@ -1,4 +1,4 @@ -' This is a comment + Imports System.Data Imports System.Drawing Imports System.IO @@ -46,10 +46,9 @@ Public Class SignUp If imgpath <> "" Then Dim img As Image = Image.FromFile(imgpath) Dim bArr As Byte() = imgToByteArray(img) - ' da.InsertQuery(txtFirstName.Text, txtLastName.Text, txtAddress.Text, txtTown.Text, txtPostcode.Text, CardNum, CVC, txtIGN.Text, txtEmail.Text, bArr) dr.Item("ProfilePic") = bArr End If - ' + dt.AddUser_DetailsRow(dr) da.Update(dt) MsgBox("Your data has been successfully added") @@ -107,14 +106,6 @@ Public Class SignUp MsgBox(ex.Message.ToString()) End Try End Sub - - ' Private Sub txtIGN_LostFocus(sender As Object, e As RoutedEventArgs) Handles txtIGN.LostFocus - ' If txtIGN.Text <> "In Game Name" Then - ' lblIGN.Content = txtIGN - ' End If - 'End Sub - - 'convert image to bytearray Private Function imgToByteArray(ByVal img As Image) As Byte() Using mStream As New MemoryStream() img.Save(mStream, Imaging.ImageFormat.Jpeg)