]> fbox.kageds.com Git - NEATEST.git/blobdiff - NEA/SignUp.xaml.vb
Read/Write pictures to Games table
[NEATEST.git] / NEA / SignUp.xaml.vb
index ce33a2e785dd88188e12032548d4b98f4daa7f58..05ff931f784a5f7aa95d605a76974240ef62d995 100644 (file)
@@ -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)