public RemoteFileListPanel(PscpTransfer transfer, DockPanel dockPanel, SessionData session) { Logger.Log("Started new File Transfer Session for {0}", session.SessionName); m_Session = session; m_DockPanel = dockPanel; m_Transfer = transfer; m_MouseFollower = new dlgMouseFeedback(); InitializeComponent(); this.TabText = session.SessionName; LoadDirectory(m_Path); }
public void CreateRemoteFileListPanel(SessionData sessionData) { RemoteFileListPanel dir = null; bool cancelShow = false; if (sessionData != null) { PuttyClosedCallback callback = delegate(bool error) { cancelShow = error; }; PscpTransfer xfer = new PscpTransfer(sessionData); xfer.PuttyClosed = callback; dir = new RemoteFileListPanel(xfer, dockPanel1, sessionData); if (!cancelShow) { dir.Show(dockPanel1); } } }
/// <summary> /// Open a directory listing on the selected nodes host to allow dropping files /// for drag + drop copy. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fileBrowserToolStripMenuItem_Click(object sender, EventArgs e) { SessionData session = (SessionData)treeView1.SelectedNode.Tag; RemoteFileListPanel dir = null; bool cancelShow = false; if (session != null) { PuttyClosedCallback callback = delegate(bool error) { cancelShow = error; }; PscpTransfer xfer = new PscpTransfer(session); xfer.PuttyClosed = callback; dir = new RemoteFileListPanel(xfer, m_DockPanel, session); if (!cancelShow) { dir.Show(m_DockPanel); } } }