public void Reset() { this.m_RootDir = null; this.m_nRootDir = -1; this.m_SubDir = null; this.m_nSubDir = -1; this.m_Current = new TwoPaths(); this.m_fReset = true; this.m_RootDir = Directory.GetDirectories(this.m_Root); }
public void Reset() { this.m_RootDir = (string[])null; this.m_nRootDir = -1; this.m_SubDir = (string[])null; this.m_nSubDir = -1; this.m_Current = new TwoPaths(); this.m_fReset = true; this.m_RootDir = Directory.GetDirectories(this.m_Root); }
public void Reset() { m_RootDir = null; m_nRootDir = -1; m_fRootDir = false; m_SubDir = null; m_nSubDir = -1; m_Current = new TwoPaths(); m_fReset = true; m_RootDir = Directory.GetDirectories(m_Root); }
public bool MoveNext() { IsolatedStorageScope scope; string str; string str2; string str3; this.m_fiop.Assert(); this.m_fReset = false; Label_0012: if (!this.m_fileEnum.MoveNext()) { this.m_fEnd = true; return(false); } IsolatedStorageFile file = new IsolatedStorageFile(); TwoPaths current = (TwoPaths)this.m_fileEnum.Current; bool flag = false; if (IsolatedStorageFile.NotAssemFilesDir(current.Path2) && IsolatedStorageFile.NotAppFilesDir(current.Path2)) { flag = true; } Stream s = null; Stream stream2 = null; Stream stream3 = null; if (flag) { if (!this.GetIDStream(current.Path1, out s) || !this.GetIDStream(current.Path1 + '\\' + current.Path2, out stream2)) { goto Label_0012; } s.Position = 0L; if (System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope)) { scope = IsolatedStorageScope.Roaming | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain | IsolatedStorageScope.User; } else if (System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope)) { scope = IsolatedStorageScope.Machine | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain; } else { scope = IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain | IsolatedStorageScope.User; } str = current.Path1; str2 = current.Path2; str3 = null; } else if (IsolatedStorageFile.NotAppFilesDir(current.Path2)) { if (!this.GetIDStream(current.Path1, out stream2)) { goto Label_0012; } if (System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope)) { scope = IsolatedStorageScope.Roaming | IsolatedStorageScope.Assembly | IsolatedStorageScope.User; } else if (System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope)) { scope = IsolatedStorageScope.Machine | IsolatedStorageScope.Assembly; } else { scope = IsolatedStorageScope.Assembly | IsolatedStorageScope.User; } str = null; str2 = current.Path1; str3 = null; stream2.Position = 0L; } else { if (!this.GetIDStream(current.Path1, out stream3)) { goto Label_0012; } if (System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope)) { scope = IsolatedStorageScope.Application | IsolatedStorageScope.Roaming | IsolatedStorageScope.User; } else if (System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope)) { scope = IsolatedStorageScope.Application | IsolatedStorageScope.Machine; } else { scope = IsolatedStorageScope.Application | IsolatedStorageScope.User; } str = null; str2 = null; str3 = current.Path1; stream3.Position = 0L; } if (!file.InitStore(scope, s, stream2, stream3, str, str2, str3) || !file.InitExistingStore(scope)) { goto Label_0012; } this.m_Current = file; return(true); }
public bool MoveNext() { this.m_fiop.Assert(); this.m_fReset = false; while (this.m_fileEnum.MoveNext()) { IsolatedStorageFile isolatedStorageFile = new IsolatedStorageFile(); TwoPaths twoPaths = (TwoPaths)this.m_fileEnum.Current; bool flag = false; if (IsolatedStorageFile.NotAssemFilesDir(twoPaths.Path2) && IsolatedStorageFile.NotAppFilesDir(twoPaths.Path2)) { flag = true; } Stream stream = null; Stream stream2 = null; Stream stream3 = null; IsolatedStorageScope scope; string domainName; string assemName; string appName; if (flag) { if (!this.GetIDStream(twoPaths.Path1, out stream) || !this.GetIDStream(twoPaths.Path1 + "\\" + twoPaths.Path2, out stream2)) { continue; } stream.Position = 0L; if (IsolatedStorage.IsRoaming(this.m_Scope)) { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly | IsolatedStorageScope.Roaming); } else if (IsolatedStorage.IsMachine(this.m_Scope)) { scope = (IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly | IsolatedStorageScope.Machine); } else { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly); } domainName = twoPaths.Path1; assemName = twoPaths.Path2; appName = null; } else if (IsolatedStorageFile.NotAppFilesDir(twoPaths.Path2)) { if (!this.GetIDStream(twoPaths.Path1, out stream2)) { continue; } if (IsolatedStorage.IsRoaming(this.m_Scope)) { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Roaming); } else if (IsolatedStorage.IsMachine(this.m_Scope)) { scope = (IsolatedStorageScope.Assembly | IsolatedStorageScope.Machine); } else { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Assembly); } domainName = null; assemName = twoPaths.Path1; appName = null; stream2.Position = 0L; } else { if (!this.GetIDStream(twoPaths.Path1, out stream3)) { continue; } if (IsolatedStorage.IsRoaming(this.m_Scope)) { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Roaming | IsolatedStorageScope.Application); } else if (IsolatedStorage.IsMachine(this.m_Scope)) { scope = (IsolatedStorageScope.Machine | IsolatedStorageScope.Application); } else { scope = (IsolatedStorageScope.User | IsolatedStorageScope.Application); } domainName = null; assemName = null; appName = twoPaths.Path1; stream3.Position = 0L; } if (isolatedStorageFile.InitStore(scope, stream, stream2, stream3, domainName, assemName, appName) && isolatedStorageFile.InitExistingStore(scope)) { this.m_Current = isolatedStorageFile; return(true); } } this.m_fEnd = true; return(false); }
public bool MoveNext() { this.m_fiop.Assert(); this.m_fReset = false; while (this.m_fileEnum.MoveNext()) { IsolatedStorageFile isolatedStorageFile = new IsolatedStorageFile(); TwoPaths twoPaths = (TwoPaths)this.m_fileEnum.Current; bool flag = false; if (IsolatedStorageFile.NotAssemFilesDir(twoPaths.Path2) && IsolatedStorageFile.NotAppFilesDir(twoPaths.Path2)) { flag = true; } Stream s1 = (Stream)null; Stream s2 = (Stream)null; Stream s3 = (Stream)null; IsolatedStorageScope scope; string domainName; string assemName; string appName; if (flag) { if (this.GetIDStream(twoPaths.Path1, out s1) && this.GetIDStream(twoPaths.Path1 + "\\" + twoPaths.Path2, out s2)) { s1.Position = 0L; scope = !System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope) ? (!System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope) ? IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly : IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly | IsolatedStorageScope.Machine) : IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly | IsolatedStorageScope.Roaming; domainName = twoPaths.Path1; assemName = twoPaths.Path2; appName = (string)null; } else { continue; } } else if (IsolatedStorageFile.NotAppFilesDir(twoPaths.Path2)) { if (this.GetIDStream(twoPaths.Path1, out s2)) { scope = !System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope) ? (!System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope) ? IsolatedStorageScope.User | IsolatedStorageScope.Assembly : IsolatedStorageScope.Assembly | IsolatedStorageScope.Machine) : IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Roaming; domainName = (string)null; assemName = twoPaths.Path1; appName = (string)null; s2.Position = 0L; } else { continue; } } else if (this.GetIDStream(twoPaths.Path1, out s3)) { scope = !System.IO.IsolatedStorage.IsolatedStorage.IsRoaming(this.m_Scope) ? (!System.IO.IsolatedStorage.IsolatedStorage.IsMachine(this.m_Scope) ? IsolatedStorageScope.User | IsolatedStorageScope.Application : IsolatedStorageScope.Machine | IsolatedStorageScope.Application) : IsolatedStorageScope.User | IsolatedStorageScope.Roaming | IsolatedStorageScope.Application; domainName = (string)null; assemName = (string)null; appName = twoPaths.Path1; s3.Position = 0L; } else { continue; } if (isolatedStorageFile.InitStore(scope, s1, s2, s3, domainName, assemName, appName) && isolatedStorageFile.InitExistingStore(scope)) { this.m_Current = isolatedStorageFile; return(true); } } this.m_fEnd = true; return(false); }