Пример #1
0
 /// <summary>
 /// 新增规则配置
 /// </summary>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     GZPZFrm gzpzFrm = new GZPZFrm();
     gzpzFrm.ShowDialog();
     if(gzpzFrm.DialogResult==DialogResult.OK)
     {
         this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe);
     }
 }
Пример #2
0
        /// <summary>
        /// 新增规则配置
        /// </summary>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            GZPZFrm gzpzFrm = new GZPZFrm();

            gzpzFrm.ShowDialog();
            if (gzpzFrm.DialogResult == DialogResult.OK)
            {
                this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe);
            }
        }
Пример #3
0
 /// <summary>
 /// 修改规则配置
 /// </summary>
 private void btnEdit_Click(object sender, EventArgs e)
 {
     int selectRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
     if(selectRow>0)
     {
         GZPZFrm gzpzFrm = new GZPZFrm();
         gzpzFrm.GZID = selectRow;
         gzpzFrm.ShowDialog();
         if (gzpzFrm.DialogResult == DialogResult.OK)
         {
             this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe);
         }
     }
 }
Пример #4
0
        /// <summary>
        /// 修改规则配置
        /// </summary>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int selectRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value;

            if (selectRow > 0)
            {
                GZPZFrm gzpzFrm = new GZPZFrm();
                gzpzFrm.GZID = selectRow;
                gzpzFrm.ShowDialog();
                if (gzpzFrm.DialogResult == DialogResult.OK)
                {
                    this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe);
                }
            }
        }