-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLog In.xaml.vb
22 lines (20 loc) · 938 Bytes
/
Log In.xaml.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Imports System.Windows
Namespace Namanga_Hope_Center
Public Class Log_In
Inherits Window
Public Sub New()
InitializeComponent()
End Sub
Private Sub LogInButton_Click(Sender As Object, e As RoutedEventArgs)
Dim username As String = UsernameBox.Text
Dim Password As String = PasswordBox.Password
If String.IsNullOrWhiteSpace(username) Or String.IsNullOrWhiteSpace(Password) Then
MessageBox.Show("Welcome! Get Password from Director Richard", "Please contact Director Richard.", MessageBoxButton.OK, MessageBoxImage.Warning)
Else MessageBox.Show("Praise God!", "Info!", MessageBoxButton.OK, MessageBoxImage.Information)
Dim DashboardWindow As New DashBoard()
DashboardWindow.Show()
Me.Close()
End If
End Sub
End Class
End Namespace