Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     BargainBindAddhctype bh = new BargainBindAddhctype();
     if (bh.ShowDialog() == DialogResult.OK)
     {
         if (isExist_dgv_para(bh.hctype_))
         {
             MessageBox.Show("已存在该幅面的设置!");
             return;
         }
         DataRow dr = dtpara.NewRow();
         dr[0] = bh.hctype_;
         dr[1] = bh.myzs_;
         dr[2] = bh.jbzs_;
         dtpara.Rows.Add(dr);
     }
 }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            BargainBindAddhctype bh = new BargainBindAddhctype();

            if (bh.ShowDialog() == DialogResult.OK)
            {
                if (isExist_dgv_para(bh.hctype_))
                {
                    MessageBox.Show("已存在该幅面的设置!");
                    return;
                }
                DataRow dr = dtpara.NewRow();
                dr[0] = bh.hctype_;
                dr[1] = bh.myzs_;
                dr[2] = bh.jbzs_;
                dtpara.Rows.Add(dr);
            }
        }