/// <summary>
        /// 保存项目到具体文件
        /// </summary>
        private void SaveProjectToFile()
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter           = "laserpro files   (*.laserpro)|*.laserpro";
            saveFileDialog.FilterIndex      = 2;
            saveFileDialog.RestoreDirectory = true;
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                MainLaserProjectpath = saveFileDialog.FileName;//记录保存位置
                OperatePara.SaveXmlNoPath <LaserProject>(saveFileDialog.FileName, MainLaserProject);
            }
        }
 /// <summary>
 /// 保存项目
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SaveProject_Click(object sender, EventArgs e)
 {
     if ((MainLaserProject.ProjectName == "") || (MainLaserProject.ProjectName == null))//项目名为空
     {
         MessageBox.Show("当前项目为空,请先建立项目!");
         return;
     }
     if (MainLaserProjectpath == null)//未保存过项目
     {
         SaveProjectToFile();
     }
     else//已保存过项目
     {
         if (File.Exists(MainLaserProjectpath))
         {
             OperatePara.SaveXmlNoPath <LaserProject>(MainLaserProjectpath, MainLaserProject);
         }
         else
         {
             SaveProjectToFile();
         }
     }
 }