コード例 #1
0
        //添加
        private void btnAdd_Click(object sender, EventArgs e)
        {
            KeywordEdit kedit = new KeywordEdit("", "添加");

            if (kedit.ShowDialog() == DialogResult.OK)
            {
                FistPage();
            }
        }
コード例 #2
0
        //编辑
        private void btnEdit_Click(object sender, EventArgs e)
        {
            object obj = this.dataGridKeyWord.CurrentRow;

            if (obj == null)
            {
                return;
            }
            string kid = this.dataGridKeyWord.CurrentRow.Cells[1].Value.ToString();

            KeywordEdit kedit = new KeywordEdit(kid, "编辑");

            if (kedit.ShowDialog() == DialogResult.OK)
            {
                this.strWhere = string.Format(" KID like '%{0}%'", kid);
                FistPage();
            }
        }