-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadForm.xaml.vb
48 lines (36 loc) · 1.88 KB
/
LoadForm.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
Imports System.Windows.Threading
Public Class LoadForm
Private Sub Grid_MouseDown(sender As Object, e As MouseButtonEventArgs)
Environment.Exit(0)
End Sub
Dim timer As New DispatcherTimer()
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
Dim mywin = VisualTreeHelper.GetChild(LoadForm, 0)
Dim MainBorder As Border = LogicalTreeHelper.FindLogicalNode(mywin, "MainBorder")
Dim textblock As TextBlock = LogicalTreeHelper.FindLogicalNode(mywin, "textblock")
timer.Interval = New TimeSpan(2000000)
Dim i As Int16 = 0
AddHandler timer.Tick, New EventHandler(Sub()
Select Case i
Case 0
textblock.Text = "Loading ."
i += 1
Case 1
textblock.Text = "Loading .."
i += 1
Case 2
textblock.Text = "Loading ..."
i += 1
End Select
If i = 3 Then
i = 0
End If
End Sub)
timer.Start()
End Sub
Private Sub MainGrid_MouseDown(sender As Object, e As MouseButtonEventArgs)
If e.LeftButton = MouseButtonState.Pressed Then
DragMove()
End If
End Sub
End Class