public OnServerFolder(DXDriver driver, int folderid, string foldername, string dbname) { m_driver = driver; m_folderid = folderid; m_dbname = dbname; m_folderName = foldername; }
public OnServerFile(DXDriver driver, string filename, string dbname, int folderid) { m_driver = driver; m_filename = filename; m_dbname = dbname; m_folderid = folderid; }
public static void AddFolderNodes(List <ITreeNode> res, string folderName, Func <IVirtualFolder, string, string, ITreeNode> createNode, IDatabaseSource conn) { res.Add(createNode( new DiskFolder(conn.GetPrivateSubFolder(folderName)), String.Format(" - {0}", Texts.Get("s_local")), "_local" )); DXDriver driver = null; if (conn.Connection != null && !conn.OfflineDatabaseCaps.IsPhantom) { driver = conn.Connection.GetDXDriver(conn.DatabaseName); } if (driver != null) { res.Add(createNode( driver.GetFolder(folderName, conn.DatabaseName), String.Format(" - {0}", Texts.Get("s_on_server")), "_onserver" )); } }