Пример #1
0
        /// <summary>
        /// 新增数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnInsert_Click(object sender, EventArgs e)
        {
            AddConfig form = new AddConfig();

            form.ShowDialog();

            this.FillStandard();
        }
Пример #2
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnUpdate_Click_1(object sender, EventArgs e)
 {
     try
     {
         //if (VCUItem != null)
         //{
         //    AddConfig form = new AddConfig(VCUItem);
         //    form.ShowDialog();
         //    this.FillStandard();
         //}
         if (t_VCUConfig != null)
         {
             AddConfig form = new AddConfig(t_VCUConfig);
             form.ShowDialog();
             this.FillStandard();
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message + "***" + ex.StackTrace);
     }
 }