private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            AddOrUpdateSample addWindow = new AddOrUpdateSample();

            try
            {
                addWindow.Title                  = "新增国家检测标准";
                addWindow.textBoxName.Text       = addWindow._projectName = _projectName;
                addWindow.textBoxName.IsReadOnly = true;
                addWindow._ItemNames             = _Items;
                addWindow.ShowDialog();
                this.SearchSampleByName();
            }
            catch (Exception ex)
            {
                MessageBox.Show("异常:\n" + ex.Message);
            }
        }
 /// <summary>
 /// 新增||修改样品
 /// </summary>
 /// <param name="type">add为新增||update为修改</param>
 private void AddOrUpdate(string type, clsttStandardDecide model)
 {
     try
     {
         AddOrUpdateSample addWindow = new AddOrUpdateSample();
         if (type.Equals("add"))
         {
             addWindow.Title = "新增国家检测标准";
         }
         else
         {
             addWindow.Title           = "修改国家检测标准";
             addWindow.btnSave.Content = "修改";
             addWindow._decide         = model;
         }
         addWindow._ItemNames = _ItemNames;
         addWindow.ShowDialog();
         SearchSample();
     }
     catch (Exception ex)
     {
         MessageBox.Show("异常:\n" + ex.Message);
     }
 }