Пример #1
0
        /// <summary>
        /// 角色管理
        /// </summary>
        private void toolStripButtonRoleManage_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewUsers.SelectedRows.Count <= 0)
            {
                return;
            }
            string userId = this.dataGridViewUsers.SelectedRows[0].Cells["用户编码"].Value.ToString().Trim();

            UserRoleForm form = new UserRoleForm(userId);

            form.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// 角色管理
        /// </summary>  
        private void toolStripButtonRoleManage_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewUsers.SelectedRows.Count <= 0)
                return;
            string userId = this.dataGridViewUsers.SelectedRows[0].Cells["用户编码"].Value.ToString().Trim();

            UserRoleForm form = new UserRoleForm(userId);
            form.ShowDialog();
        }