コード例 #1
0
        private void ribeDeleteAuthority_Click(object sender, EventArgs e)
        {
            AuthoritiesVM vm = this.gvAuthorities.GetRow(this.gvAuthorities.FocusedRowHandle) as AuthoritiesVM;//获取选中行的实体

            var res = _bll.DeleteAuthorities(vm);

            if (res > 0)
            {
                XtraMessageBox.Show("删除成功!", "提示", MessageBoxButtons.OK);
                RequestAuthoritiesData();
            }
            else
            {
                XtraMessageBox.Show("删除失败!", "提示", MessageBoxButtons.OK);
            }
        }