private void UserFileAuthFrm_Load(object sender, EventArgs e)
{
switch (this.AuthObjectType)
{
case DataType.AuthObjectType.SingleUser:
{
if (this.UserAccount == "" || this.UserAccount == null)
{
MessageBox.Show("请指定需要设定权限用户信息!!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
this.Close();
}
else
{
this.Text = this.Text +"--用户"+"【" +this.UserAccount+ "】";
}
break;
}
case DataType.AuthObjectType.UserRole:
{
if (this.UserRole == "" || this.UserRole == null)
{
MessageBox.Show("请指定用户角色!!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
this.Close();
}
else
{
this.Text = this.Text + "--群组" + "【" + this.UserRole + "】";
}
break;
}
default:
{
MessageBox.Show("设置权限的类型非法!!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
this.Close();
break;
}
}
fileHelper = new FileHelper();
fileHelper.getTreeViewByPathDir(this.trvFolderDir);
initial();
}