Esempio n. 1
0
 private void setMyEventExpandCollapse(MyEventExpandCollapse myEvent, object sender)
 {
     myEvent.MyGridView               = this.MyGVDestination;
     myEvent.GridView                 = (GridView)(sender as Control).Parent.Parent.Parent.Parent;
     myEvent.GridViewInner            = (GridView)(sender as Control).FindControl("gvInsideFolder");
     myEvent.ImgBtnExpand             = (ImageButton)(sender as Control).FindControl("expand");
     myEvent.SearchedWords            = this.ListSearchedWords;
     myEvent.GridViewRowSelected      = (GridViewRow)(sender as Control).Parent.Parent;
     myEvent.SearchMode               = this.SearchMode;
     myEvent.DestinationCurrentFolder = this.DestinationCurrentFolder;
     myEvent.DestWebServerFolder      = this.DestinationWebServerFolder;
     myEvent.DestinationHomeFolder    = this.DestinationHomeFolder;
     myEvent.Response                 = this.Response;
 }
Esempio n. 2
0
    // When a + sign is clicked, this will expand the Gridview to show the contents within a folder
    // When a - sign is clicked, this will collapse the Gridview to show the top level of the folder
    protected void expandCollapseFolders(object sender, EventArgs e)
    {
        MyEventExpandCollapse myEvent = new MyEventExpandCollapse();

        setMyEventExpandCollapse(myEvent, sender);
        if (myEvent.GridViewInner.Visible)
        {
            myEvent.collapseInnerGridView();
        }
        else
        {
            myEvent.collapseAllInnerGridViews();
            myEvent.expandInnerGridView();
        }
    }