private void LoadProject()
        {
            if (Project != null)
            {
                textBox1.Text = Project.ProjectName;
                propertyGrid1.SelectedObject = Project;
                propertyGrid1.ExpandAllGridItems();

                richTextBox1.Text = Project.ToString();


                comboBoxPos.Items.Clear();
                var props = Project.GetType().GetProperties();
                foreach (var p in props)
                {
                    if (p.PropertyType == typeof(List <PosXYZU>))
                    {
                        comboBoxPos.Items.Add(p.Name);
                    }

                    if (p.PropertyType == typeof(List <PosXYZ>))
                    {
                        comboBoxPos.Items.Add(p.Name);
                    }
                }
            }
        }
        private void buttonEditCurFile_Click(object sender, EventArgs e)
        {
            if (Project != null)
            {
                try
                {
                    var editor = new MeasureProjectEditor();
                    editor.StartPosition      = FormStartPosition.CenterParent;
                    editor.MeasureProjectType = Project.GetType();
                    editor.Platforms          = Station.Machine.Platforms.Values.ToList();
                    editor.Project            = Project;
                    editor.ShowDialog();
                }
                catch (Exception ex)
                {
                    MessageBox.Show($"编辑当前文件异常:{ex.Message}");
                }
            }

            LoadMeasureProject();
        }