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…/Forms/ResultForm.cs
T
2026-06-16 12:57:08 +08:00

36 lines
918 B
C#

using kcsj.Models;
using kcsj.Services;
namespace kcsj.Forms
{
public partial class ResultForm : Form
{
private RichTextBox resultTextBox = null!;
public ResultForm(LeastSquaresResult result)
{
InitializeComponent();
resultTextBox.Text = Report.BuildResultText(result);
}
private void InitializeComponent()
{
Text = "平差结果";
StartPosition = FormStartPosition.CenterParent;
Size = new Size(820, 560);
MinimumSize = new Size(680, 420);
resultTextBox = new RichTextBox
{
Dock = DockStyle.Fill,
ReadOnly = true,
BorderStyle = BorderStyle.FixedSingle,
Font = new Font("Consolas", 10.5F),
WordWrap = false
};
Controls.Add(resultTextBox);
}
}
}