-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.vb
56 lines (43 loc) · 1.81 KB
/
MainWindow.xaml.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Class MainWindow
Private Sub edit_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles edit.Click
Me.Opacity = 0.4
Dim cont As New cont
cont.Show()
cont.Activate()
Me.Opacity = 1
End Sub
Private Sub begin_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles begin.Click
Me.WindowState = Windows.WindowState.Minimized
Dim vote As New vote
vote.Show()
End Sub
Private Sub res_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles res.Click
Me.Opacity = 0.4
Dim cred As New cred
cred.ShowDialog()
cred.Activate()
Me.Opacity = 1
End Sub
Private Sub img_ImageFailed(ByVal sender As System.Object, ByVal e As EventArgs) Handles img.MouseUp
Me.Opacity = 0.4
Dim win As New win
win.Show()
win.Activate()
Me.Opacity = 1
End Sub
Private Sub img_ImageFailed_1(ByVal sender As System.Object, ByVal e As EventArgs) Handles img.MouseEnter
img.Opacity = 1
End Sub
Private Sub img_Id_1(ByVal sender As System.Object, ByVal e As EventArgs) Handles img.MouseLeave
img.Opacity = 0.7
End Sub
Private Sub main_Loaded(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
Me.Opacity = 0.4
If MessageBox.Show("Are you sure you want to quit?" & vbNewLine & "The counters will be saved and you can still resume voting... ", "Exit Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then
My.Settings.Save()
End
Else : Me.Opacity = 1
End If
End Sub
End Class