示例#1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (dgvStatItem.Rows.Count == 0)
            {
                return;
            }
            if (dgvStatItem.CurrentCell == null)
            {
                return;
            }
            string          code  = dgvStatItem["CODE", dgvStatItem.CurrentCell.RowIndex].Value.ToString().Trim();
            FrmStatItemEdit fEdit = new FrmStatItemEdit(code);

            if (fEdit.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("项目对应关系已发生改变,请刷新", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
示例#2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmStatItemEdit fEdit = new FrmStatItemEdit();

            fEdit.ShowDialog();
        }