public static void AddSysEvent(Exception e, string sCustTimeStampPart = "") { string sException = "RootFrame_NavigationFailed...\n\nMessage:\n" + e.Message + "\n\nStack Trace:\n" + e.StackTrace; RscStore_IsoStore.AddSysEvent(sException, true, sCustTimeStampPart); }
protected RscStore_Base GetStore(string sPath) { if (sPath.Length < 2) { return(null); } if (sPath[1] != ':') { return(null); } RscStore_Base store = null; switch (sPath[0]) { case 'A': case 'a': store = new RscStore_IsoStore(); break; case 'B': case 'b': store = new RscStore_KnownFolders(); break; default: store = new RscStore_Storage(); break; } store = store.GetSpecialStorage(GetStorePath(sPath)); return(store); }
public override string [] GetFolderNames(string path, string wildcard, bool bIncludeHidden, bool bStartWithInfChr) { IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication(); string [] astr = store.GetDirectoryNames(path + "\\" + wildcard); if ((!bIncludeHidden) || bStartWithInfChr) { int iCntNormal = 0; string [] astrNormal = null; for (int iCyc = 0; iCyc < 2; iCyc++) { for (int i = 0; i < astr.Length; i++) { if (path == "" || path == "\\") //Iso root... { string sLo = astr[i].ToLower(); if (RscStore_IsoStore.Is_IE_Cache_Folder(sLo)) { if (bIncludeHidden && (iCyc == 0) && bStartWithInfChr) { astr[i] = "w" + astr[i]; } } else { switch (sLo) { case "shared": //WP7 { if (bIncludeHidden && (iCyc == 0) && bStartWithInfChr) { astr[i] = "w" + astr[i]; } break; } case "temp": //Ressive.Hu { if (bIncludeHidden && (iCyc == 0) && bStartWithInfChr) { astr[i] = "r" + astr[i]; } break; } default: { //Normal... if (iCyc > 0) { astrNormal[iCntNormal] = astr[i]; } iCntNormal++; if ((iCyc == 0) && bStartWithInfChr) { astr[i] = "n" + astr[i]; } break; } } } } else { //Normal... if (iCyc > 0) { astrNormal[iCntNormal] = astr[i]; } iCntNormal++; if ((iCyc == 0) && bStartWithInfChr) { astr[i] = "n" + astr[i]; } } } if (iCyc == 0) { if (bIncludeHidden) { break; //Include all files... } if (iCntNormal == astr.Length) { break; //No hidden files... } astrNormal = new String[iCntNormal]; iCntNormal = 0; } else { astr = astrNormal; break; } } } return(astr); }
public static void AddSysEvent(string sText, bool bErr = false, string sCustTimeStampPart = "") { RscStore_IsoStore.AddSysEvent(sText, bErr, sCustTimeStampPart); }
// // // // public static long AvailableFreeSpace(out string sDrive) { sDrive = RscStore_Storage.IsoStoreDrive(); return(RscStore_IsoStore.AvailableFreeSpace()); }