示例#1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            string id           = string.Empty;
            string strGroupName = string.Empty;

            foreach (DataGridViewRow row in this.dgvGroupList.Rows)
            {
                if (row.Cells["clSelect"].Value.ToString() == "1")
                {
                    id           = row.Cells["clID"].Value.ToString();
                    strGroupName = row.Cells["clGroupName"].Value.ToString();
                }
            }
            if (string.IsNullOrEmpty(id))
            {
                return;
            }
            FrmDocGroupListModify frmAction = new FrmDocGroupListModify(id, this, strGroupName);

            frmAction.ShowDialog();
        }
示例#2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmDocGroupListModify frmAction = new FrmDocGroupListModify();

            frmAction.ShowDialog();
        }