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/MainForm.cs
T
2026-06-09 16:59:53 +08:00

52 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using kcsj.Services;
namespace kcsj.Forms
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private void btnDataInput_Click(object sender, EventArgs e)
{
DataInputForm form = new DataInputForm();
form.ShowDialog();
}
private void MainForm_Load(object sender, EventArgs e)
{
LogService.OnLog += ShowLog;
LogService.AddLog("程序启动成功。");
}
private void ShowLog(string message)
{
LOG.AppendText(message + "\r\n");
LOG.ScrollToCaret();
}
private void ClearLog_Click(object sender, EventArgs e)
{
LOG.Clear();
}
private void 从文件ToolStripMenuItem_Click(object sender, EventArgs e)
{
FileInputForm form = new FileInputForm();
form.ShowDialog();
}
}
}