public void LoadMeasureProject()
        {
            if (Station != null)
            {
                groupBoxStation.Text = $"{Station.Name} {Station.Description}";
            }

            if (!string.IsNullOrEmpty(ProjectFile))
            {
                if (ProjecType != null)
                {
                    try
                    {
                        Project = MeasureProject.Load(ProjectFile, ProjecType);
                    }
                    catch (Exception ex)
                    {
                        Project = null;
                        MessageBox.Show($"加载{ProjecType}测试文件异常:{ex.Message}");
                        return;
                    }
                }

                Display();
            }
        }
        private void 打开ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var ofd = new OpenFileDialog();

            ofd.InitialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Config\\Project");
            ofd.Filter           = @"(Measure Project)|*.mprj|(All Files)|*.*";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                Project = MeasureProject.Load(ofd.FileName, MeasureProjectType);
                LoadProject();
            }
        }
        private void 另存为ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var sfd = new SaveFileDialog();

            sfd.InitialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Config\\Project");
            sfd.Filter           = @"(Measure Project)|*.mprj|(All Files)|*.*";

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                Project = propertyGrid1.SelectedObject as MeasureProject;
                Project?.Save(sfd.FileName);
            }
        }
 private void 新建ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Project = (MeasureProject)Activator.CreateInstance(MeasureProjectType);
     LoadProject();
 }