コード例 #1
0
    private void openLink(GridViewCommandEventArgs e)
    {
        MyEventOpenFolder myOpenFolder = new MyEventOpenFolder();

        setMyOpenFolder(myOpenFolder, e);
        // If the Link was clicked within the Location Gridview, Update the Location Gridview
        if (e.CommandName == "OpenSourceFolder")
        {
            this.SourceCurrentFolder = myOpenFolder.openFolderViaLinkButton("Source");
            bindGridview(gvSource, MyGVSource, lblSourceCurrentPath);
        }
        // If the Link was clicked within the Destination Gridview, Update the Destination Gridview
        else if (e.CommandName == "OpenDestFolder")
        {
            this.DestinationCurrentFolder = myOpenFolder.openFolderViaLinkButton("Destination");
            // When a linkbutton is clicked, it will always exit the search mode // TODO, what about the back button??
            SearchMode = false;
            bindGridview(gvDestination, MyGVDestination, lblDestinationCurrentPath);
        }
    }