2024-02-05 23:08:37 -08:00
|
|
|
using Avalonia.Controls;
|
|
|
|
using Avalonia.Input;
|
|
|
|
using Avalonia.Interactivity;
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
namespace SourceGit.Views {
|
|
|
|
public partial class About : Window {
|
|
|
|
public string Version {
|
|
|
|
get;
|
|
|
|
private set;
|
|
|
|
}
|
|
|
|
|
|
|
|
public About() {
|
|
|
|
var ver = Assembly.GetExecutingAssembly().GetName().Version;
|
|
|
|
Version = $"{ver.Major}.{ver.Minor}";
|
|
|
|
DataContext = this;
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
2024-03-14 03:23:36 -07:00
|
|
|
private void BeginMoveWindow(object sender, PointerPressedEventArgs e) {
|
|
|
|
BeginMoveDrag(e);
|
|
|
|
}
|
|
|
|
|
2024-02-05 23:08:37 -08:00
|
|
|
private void CloseWindow(object sender, RoutedEventArgs e) {
|
|
|
|
Close();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnVisitAvaloniaUI(object sender, PointerPressedEventArgs e) {
|
|
|
|
Native.OS.OpenBrowser("https://www.avaloniaui.net/");
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnVisitAvaloniaEdit(object sender, PointerPressedEventArgs e) {
|
2024-02-19 23:44:26 -08:00
|
|
|
Native.OS.OpenBrowser("https://github.com/AvaloniaUI/AvaloniaEdit");
|
2024-02-05 23:08:37 -08:00
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnVisitJetBrainsMonoFont(object sender, PointerPressedEventArgs e) {
|
|
|
|
Native.OS.OpenBrowser("https://www.jetbrains.com/lp/mono/");
|
|
|
|
e.Handled = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|