Exemplo n.º 1
0
        protected virtual void ClickDelete(object arg1, EventArgs arg2)
        {
            T entity = this.myGridView1.FindFirstSelect <T>();

            if (entity != null)
            {
                if (MessageBox.Show("是否删除数据?", "确认", MessageBoxButtons.OKCancel) == DialogResult.OK)
                {
                    bll.Delete(entity);

                    this.myGridView1.LoadData(bll.SelectAll(), base.ignoreFields);
                }
            }
        }