public void Init(WebBrowser browser, PhoneApplicationPage appMainPage, Grid layoutRoot, RhoView rhoView) { initAppUrls(); RhoLogger.InitRhoLog(); LOG.INFO("Init"); CRhoFile.recursiveCreateDir(CFilePath.join(getBlobsDirPath(), " ")); m_webBrowser = browser; if (m_appMainPage == null) { m_appMainPage = appMainPage; } if (m_layoutRoot == null) { m_layoutRoot = layoutRoot; } //m_appMainPage.ApplicationBar = null; if (m_httpServer == null) { m_httpServer = new CHttpServer(CFilePath.join(getRhoRootPath(), "apps")); } m_rhoView = rhoView; if (m_rhoView.MasterView) { m_masterView = rhoView; } }
public void Init(WebBrowser browser) { initAppUrls(); RhoLogger.InitRhoLog(); LOG.INFO("Init"); CRhoFile.recursiveCreateDir(CFilePath.join(getBlobsDirPath(), " ")); m_webBrowser = browser; m_httpServer = new CHttpServer(CFilePath.join(getRhoRootPath(), "apps")); CRhoResourceMap.deployContent(); RhoRuby.Init(m_webBrowser); DBAdapter.initAttrManager(); LOG.INFO("Starting sync engine..."); SyncThread sync = null; try{ sync = SyncThread.Create(); }catch (Exception exc) { LOG.ERROR("Create sync failed.", exc); } if (sync != null) { //sync.setStatusListener(this); } RhoRuby.InitApp(); RhoRuby.call_config_conflicts(); RHOCONF().conflictsResolved(); }
private static void copyMap(String strMap) { string[] files = strMap.Split('\n'); for (int i = 0; i < files.Length - 1; i++) { String[] values = files[i].Split('|'); String strFile = values[0]; CRhoFile.recursiveCreateDir(strFile); CRhoFile.writeDataToFile(strFile, CRhoFile.readResourceFile(strFile)); } CRhoFile.writeStringToFile("RhoBundleMap.txt", strMap); }
public static void InitRhoConf() { m_Instance = new RhoConf(); String szRootPath = ""; try{ CRhoFile.recursiveCreateDir(CRhodesApp.getRhoRootPath()); szRootPath = CRhodesApp.getRhoRootPath(); }catch (Exception) {} m_Instance.setConfFilePath(szRootPath + CONF_FILENAME); m_Instance.setRhoRootPath(szRootPath); }
private static void copyMap(String strMap) { string[] files = strMap.Split('\n'); for (int i = 0; i < files.Length - 1; i++) { String[] values = files[i].Split('|'); String strFile = values[0]; String strDstFile = values[1]; System.Diagnostics.Debugger.Log(0, "", strDstFile + "\n"); CRhoFile.recursiveCreateDir(strDstFile); CRhoFile.writeDataToFile(strDstFile, CRhoFile.readResourceFile(strFile)); } CRhoFile.writeStringToFile("RhoBundleMap.txt", strMap); }