コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ApplicationFolderPermissionTester testPermission = new ApplicationFolderPermissionTester(_testFolders);

            uxPermissionGrid.DataSource = testPermission.CreateTestFolderTable(false);
            uxPermissionGrid.DataBind();
        }
    }
コード例 #2
0
    protected void uxVerifyButton_Click(object sender, EventArgs e)
    {
        ApplicationFolderPermissionTester testPermission = new ApplicationFolderPermissionTester(_testFolders);
        bool permissionPassFlag = true;

        uxPermissionGrid.DataSource = testPermission.CreateTestFolderTable(true, out permissionPassFlag);
        uxPermissionGrid.DataBind();

        if (permissionPassFlag)
        {
            uxNextButton.Enabled = true;
        }
        else
        {
            uxFilePermissionTestMessage.DisplayErrorNoNewLine(this.GetLocalResourceObject("PermissionFail.ErrorMessage").ToString());
            uxNextButton.Enabled = false;
        }
    }