-
Notifications
You must be signed in to change notification settings - Fork 0
/
Submain.vb
36 lines (33 loc) · 1.12 KB
/
Submain.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Imports EfectiOro.Database
Imports System.Reflection
Public Class Submain
<STAThread()> _
Shared Sub Main()
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(False)
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.Automatic)
Dim configuracion As New ConfiguracionGeneral()
If configuracion.existeArchivo() = False Then
frmParametrosConexion.ShowDialog()
End If
'Application.Run(New Form1)
'Dim db As New Contexto
'db.CreateDatabase()
'Dim dao = DataContext.daoCliente
Dim login As New frmLogin
'MsgBox("Longitud del texto: " & dao.codCliente().Length)
login.ShowDialog()
If login.DialogResult = DialogResult.OK Then
If frmPrincipal.Created Then
Return
End If
Try
Dim frm As New frmPrincipal()
Application.Run(frm)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
'Application.Run(New frmPagoCompra)
End Sub
End Class