HYDocumentMS.FileAuth.UserFileAuthFrm.dGVFileList_SelectionChanged C# (CSharp) Method

dGVFileList_SelectionChanged() private method

private dGVFileList_SelectionChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void dGVFileList_SelectionChanged(object sender, EventArgs e)
        {
            FILE_AUTH auth = null;
            if (this.AuthObjectType == DataType.AuthObjectType.SingleUser)
            {
                auth = _fileAuth.GetFileAuth(DataType.AuthObjectType.SingleUser.ToString(), this.UserAccount, "N", this.dGVFileList.CurrentRow.Cells["DFL_ID"].Value.ToString());
            }
            else if (this.AuthObjectType == DataType.AuthObjectType.UserRole)
            {
                auth = _fileAuth.GetFileAuth(DataType.AuthObjectType.UserRole.ToString(), this.UserRole, "N", this.dGVFileList.CurrentRow.Cells["DFL_ID"].Value.ToString());
            }
            if (auth != null)
            {
                this.chkFileView.Checked = auth.FAU_VIEW == "Y" ? true : false;
                this.chkFileEdit.Checked = auth.FAU_EDIT == "Y" ? true : false;
                this.chkFileDelete.Checked = auth.FAU_DELETE == "Y" ? true : false;
                this.chkFileUpLoad.Checked = auth.FAU_UPLOAD == "Y" ? true : false;
                this.chkFileDownLoad.Checked = auth.FAU_DOWNLOAD == "Y" ? true : false;
                this.chkFileCheckIn.Checked = auth.FAU_CHECKIN == "Y" ? true : false;
                this.chkFileCheckOut.Checked = auth.FAU_CHECKOUT == "Y" ? true : false;
            }
            else
            {
                this.chkFileView.Checked = false;
                this.chkFileEdit.Checked = false;
                this.chkFileDelete.Checked = false;
                this.chkFileUpLoad.Checked = false;
                this.chkFileDownLoad.Checked = false;
                this.chkFileCheckIn.Checked = false;
                this.chkFileCheckOut.Checked = false;
            }
        }