using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using System.Windows.Interop; namespace AIK.Views.UpdatePages { /// /// UpdateWindow.xaml 的交互逻辑 /// public partial class UpdateWindow : Window { public UpdateWindow(string newVersion, string currentVersion, string versionContent, string versionEnContent) { InitializeComponent(); this.Topmost = true; TbVersion.Text = $"当前版本:{currentVersion} → 最新版本:{newVersion}"; #if CN TbLog.Text = versionContent; #elif TEST TbLog.Text = versionContent; #else TbLog.Text = versionEnContent; TbVersion.Text = $"Current version: {currentVersion} → Latest version: {newVersion}"; #endif } private void BtnNow_Click(object sender, RoutedEventArgs e) { DialogResult = true; Close(); } private void BtnLater_Click(object sender, RoutedEventArgs e) { DialogResult = false; Close(); } } }