コード例 #1
0
        /// <summary>
        /// 修改基本信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int         index      = dataGridView1.CurrentCell.RowIndex;
            string      id         = dataGridView1.Rows[index].Cells["id2"].Value.ToString();
            AddBaseInfo frmaddbase = new AddBaseInfo(Convert.ToInt32(id), this._Qx);

            frmaddbase.ShowDialog();
        }
コード例 #2
0
        /// <summary>
        /// 基本信息新增事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tab1_btnAdd_Click(object sender, EventArgs e)
        {
            AddBaseInfo frmAddbaseinfo = new AddBaseInfo(0, _Qx);

            frmAddbaseinfo.ShowDialog();
        }