/// <summary>
        /// 用户授权
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbSetPower_Click(object sender, EventArgs e)
        {
            DutyList    dl     = new DutyList();
            DataRowView drUser = ((DataTable)dgvUserInfo.DataSource).DefaultView[dgvUserInfo.CurrentRow.Index];

            if (drUser != null)
            {
                dl.UserID = drUser["UserID"].ToString();
                dl.ShowDialog();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 授权
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSetDuty_Click(object sender, EventArgs e)
        {
            DutyList dl = new DutyList();

            if (drUser != null)
            {
                dl.UserID = drUser["UserID"].ToString();
            }
            else
            {
                dl.UserID = userID;
            }
            dl.ShowDialog();
        }