-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZXAboutDialog.axaml.cs
More file actions
37 lines (29 loc) · 903 Bytes
/
ZXAboutDialog.axaml.cs
File metadata and controls
37 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using System;
namespace ZXBasicStudio;
public partial class ZXAboutDialog : Window
{
public ZXAboutDialog()
{
InitializeComponent();
txtBuild.Text = "1.6.0-beta4";
txtDate.Text = "2025-05-21";
btnClose.Click += BtnClose_Click;
//var name = System.Reflection.Assembly.GetExecutingAssembly().GetName();
//if(name == null || name.Version == null)
//{
// txtBuild.Text = "Unknown build";
// txtDate.Text = "Unknown date";
// return;
//}
//DateTime buildDate = new DateTime(2000, 1, 1).AddDays(name.Version.Revision);
//txtBuild.Text = $"Build {name.Version.ToString()}";
}
private void BtnClose_Click(object? sender, RoutedEventArgs e)
{
this.Close();
}
}