You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// UpdateWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
|