void folder_Select(object sender, EventArgs e) { //on folder select open the details view Host.Cursor = Cursors.WaitCursor; DetailsPanel = new FileSystemPanel(); DetailsPanel.ShowSelectButton("Remove"); DetailsPanel.FolderSelected += DetailsPanel_FolderSelected; DetailsPanel.LoadItems(new DirectoryInfo(FoldersPanel.SelectedFolder.Path), true); DetailsPanel.ShowMaximized(); Host.Cursor = Cursors.Default; }
void btnUpload_Click(object sender, EventArgs e) { //Close file Menu if its open if (fileButtonPanel != null) { fileButtonPanel.Hide(); } //Upload a File lsbUpload = new FileSystemPanel(); lsbUpload.LoadItems(null, true); lsbUpload.FileSelected += new EventHandler(lsbUpload_SelectedFile); //lsbUpload.Show(ShowTransition.FromBottom); Controls.Add(lsbUpload); lsbUpload.Bounds = new Rectangle(0, 0, Width, Height); }
private void DoFileSave() { //Close file Menu if its open if (fileButtonPanel != null) { fileButtonPanel.Hide(); } //open the filesystem panel to select a folder to save to. lsbSave = new FileSystemPanel(); lsbSave.ShowSelectButton("Select"); lsbSave.LoadItems(null, false); lsbSave.FolderSelected += new EventHandler(lsbSave_FolderSelected); //lsbSave.Show(ShowTransition.FromBottom); Controls.Add(lsbSave); lsbSave.Bounds = new Rectangle(0, 0, Width, Height); }