/// <summary> /// Refresh the information on the server /// </summary> private void RefreshInfo() { TheBox.BoxServer.ExplorerRequest msg = new ExplorerRequest(); BoxMessage result = Pandora.BoxConnection.SendToServer(msg); m_Info = result as FolderInfo; if ( m_Info != null ) { DoTree(); } else { Close(); } // Pandora.Profile.Server.FillBoxMessage( msg ); // // BoxServerForm form = new BoxServerForm( msg ); // // if ( form.ShowDialog() == DialogResult.OK ) // { // m_Info = form.Response as FolderInfo; // // if ( m_Info != null ) // { // DoTree(); // } // else // { // Close(); // } // } // else // { // Close(); // } }
/// <summary> /// Connects to the BoxServer and retrieves folder information /// </summary> /// <returns></returns> public bool GetFolderInfo() { TheBox.BoxServer.ExplorerRequest msg = new ExplorerRequest(); BoxMessage result = Pandora.BoxConnection.SendToServer(msg); m_Info = result as FolderInfo; if ( m_Info != null ) { DoTree(); } return m_Info != null; }