private void button2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "")
     {
         MessageBox.Show("相机名字不能为空");
     }
     else
     {
         PublicData.settingMessage.CaremerName = textBox1.Text;
         IniManager.WriteToIni(PublicData.settingMessage, Application.StartupPath + "\\Config" + "\\SettingMessage.Jason");
         MessageBox.Show("保存成功!请重启软件!");
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "")
     {
         MessageBox.Show("输入名称不能为空");
     }
     else
     {
         string path = Application.StartupPath + "\\Model\\" + textBox1.Text;
         if (!Directory.Exists(path))
         {
             Directory.CreateDirectory(path);
         }
         PublicData.createNewCheckModel.WriteModel(path);
         IniManager.WriteToIni(PublicData.createNewCheckModel, path + "\\CheckModel.jason");
         MessageBox.Show("模板保存成功");
     }
 }