| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- Public Class PageOtherAbout
- Private Shadows IsLoaded As Boolean = False
- Private Sub PageOtherAbout_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
- '重复加载部分
- PanBack.ScrollToHome()
- '非重复加载部分
- If IsLoaded Then Return
- IsLoaded = True
- ItemAboutPcl.Info = ItemAboutPcl.Info.Replace("%VERSION%", VersionDisplay).Replace("%VERSIONCODE%", VersionCode).Replace("%BRANCH%", CInt(BuildType))
- Using AgreementStream = Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("PCL.CommunistAgreement.txt")
- Using Reader As New StreamReader(AgreementStream, Encoding.UTF8)
- TextCommunistAgreement.Text = Reader.ReadToEnd()
- End Using
- End Using
- Using LicenceStream = Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("PCL.Licence.txt")
- Using Reader As New StreamReader(LicenceStream, Encoding.UTF8)
- TextBundledLicence.Text = Reader.ReadToEnd()
- End Using
- End Using
- If BuildType = BuildTypes.Debug Then
- BtnDonateDonate.Visibility = Visibility.Collapsed
- BtnDonateOutput.Visibility = Visibility.Visible
- End If
- End Sub
- Public Shared Sub CopyIdentify() Handles BtnDonateCopy.Click
- ClipboardSet(Identify)
- End Sub
- Private Sub BtnDonateCodeInput_Click() Handles BtnDonateInput.Click
- InputPotatoCode(False)
- End Sub
- Private Sub BtnDonateOutput_Click(sender As Object, e As EventArgs) Handles BtnDonateOutput.Click
- GeneratePotatoCode()
- End Sub
- Private Sub BtnAboutUpdate_Click(sender As Object, e As MouseButtonEventArgs) Handles BtnAboutUpdate.Click
- UpdateCheckByButton()
- End Sub
- End Class
|