コード例 #1
0
 private void setMyOpenFolder(MyEventOpenFolder open, GridViewCommandEventArgs e)
 {
     open.MyGVSource               = this.MyGVSource;
     open.MyGVDestination          = this.MyGVDestination;
     open.SourceCurrentFolder      = this.SourceCurrentFolder;
     open.DestinationCurrentFolder = this.DestinationCurrentFolder;
     open.CommandArgument          = e.CommandArgument.ToString();
 }
コード例 #2
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);
        }
    }