PageOtherAbout.xaml.vb 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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%", VersionDisplayName).Replace("%VERSIONCODE%", VersionCode).Replace("%BRANCH%", VersionBranchCode)
  10. #If 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. DonateCodeInput()
  20. End Sub
  21. #If DEBUG Then
  22. Private Sub BtnDonateOutput_Click(sender As Object, e As EventArgs) Handles BtnDonateOutput.Click
  23. DonateCodeGenerate()
  24. End Sub
  25. #End If
  26. End Class