formBlueScreen.xaml.vb 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Public Class formBlueScreen
  2. Private Sub formBlueScreen_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
  3. Me.Width = My.Computer.Screen.Bounds.Width
  4. Me.Height = My.Computer.Screen.Bounds.Height
  5. End Sub
  6. Dim AnimationProcess As Integer = 0
  7. Dim AnimationWaiting As Integer = 0
  8. Private Sub timerAnimation_Tick() Handles timerAnimation.Tick
  9. AnimationProcess = AnimationProcess + 1
  10. Select Case AnimationProcess
  11. Case 0, 1, 2, 3, 4, 13, 14, 16, 17, 18
  12. Me.Visibility = Visibility.Visible
  13. Case 5, 6, 7, 8, 9, 10, 11, 12, 15
  14. Me.Visibility = Visibility.Collapsed
  15. Case 19, 20, 21, 22
  16. Me.Visibility = Visibility.Visible
  17. panMain.Visibility = Visibility.Visible
  18. Case Else
  19. If Val(labProcess.Content) < 100 Then
  20. If RandomInteger(0, 4) = 4 Then
  21. labProcess.Content = Int(MathRange(Val(labProcess.Content) + RandomInteger(2, 30), 0, 100))
  22. End If
  23. Else
  24. AnimationWaiting = AnimationWaiting + 1
  25. If AnimationWaiting = 40 Then
  26. Me.Close()
  27. IsShowingDeathBlue = False
  28. If ReadReg("ThemeDeathBlue", "False") = "False" Then
  29. WriteReg("ThemeDeathBlue", "True")
  30. MyMsgbox("隐藏主题 死机蓝 已解锁,请到设置页面查看!", "主题已解锁", "我知道了")
  31. SendStat("彩蛋", "主题", "死机蓝")
  32. Else
  33. ShowHint("你是不是闲得无聊……")
  34. End If
  35. End If
  36. End If
  37. End Select
  38. End Sub
  39. End Class