PageOtherAbout.xaml.vb 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. Public Class PageOtherAbout
  2. Private Shadows IsLoaded As Boolean = False
  3. Private Sub PageOtherAbout_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
  4. '重复加载部分
  5. PanBack.ScrollToHome()
  6. '非重复加载部分
  7. If IsLoaded Then Return
  8. IsLoaded = True
  9. ItemAboutPcl.Info = ItemAboutPcl.Info.Replace("%VERSION%", VersionDisplay).Replace("%VERSIONCODE%", VersionCode).Replace("%BRANCH%", CInt(BuildType))
  10. If BuildType = BuildTypes.Debug Then
  11. BtnDonateDonate.Visibility = Visibility.Collapsed
  12. BtnDonateOutput.Visibility = Visibility.Visible
  13. End If
  14. End Sub
  15. Public Shared Sub CopyIdentify() Handles BtnDonateCopy.Click
  16. ClipboardSet(Identify)
  17. End Sub
  18. Private Sub BtnDonateCodeInput_Click() Handles BtnDonateInput.Click
  19. InputPotatoCode(False)
  20. End Sub
  21. Private Sub BtnDonateOutput_Click(sender As Object, e As EventArgs) Handles BtnDonateOutput.Click
  22. GeneratePotatoCode()
  23. End Sub
  24. End Class