This repository has been archived on 2026-08-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Course-Project-on-Surveying…/Views/ResultWindow.axaml.cs
T
biss f61e298871
Build and Release / Publish Windows, Linux and macOS (push) Successful in 3m7s
Migrate desktop app to Avalonia and publish cross-platform releases
2026-07-19 08:51:41 +08:00

24 lines
520 B
C#

using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using kcsj.Models;
using kcsj.Services;
namespace kcsj.Views;
public partial class ResultWindow : Window
{
public ResultWindow()
{
AvaloniaXamlLoader.Load(this);
}
public ResultWindow(LeastSquaresResult result)
: this()
{
this.FindControl<TextBox>("ResultTextBox")!.Text = Report.BuildResultText(result);
}
private void Close_Click(object? sender, RoutedEventArgs e) => Close();
}