Ejemplo n.º 1
0
        private void SetTemplate()
        {
			IsolatedStorageFile isf = new AppStorage().GetISOStorage();
            if ( !isf.FileExists( "debug.log" ) ) return;

            FileSystemLog FSL = global::wenku8.System.Bootstrap.LogInstance;
            FSL.Stop();

            StreamReader Reader = new StreamReader( FSL.GetStream() );

            List<LogLine> Logs = new List<LogLine>();
            while( !Reader.EndOfStream )
            {
                Logs.Add( new LogLine( Reader.ReadLine() ) );
            }

            LogList.ItemsSource = Logs;

            Reader.Dispose();
            FSL.Start();
        }
Ejemplo n.º 2
0
        public void Start()
        {
			IsolatedStorageFile isf = new AppStorage().GetISOStorage();
			LogFile = new IsolatedStorageFileStream( Location, FileMode.Append, isf );
			Logger.OnLog += Logger_OnLog;
        }
Ejemplo n.º 3
0
        public IsolatedStorageFileStream GetStream()
        {
			IsolatedStorageFile isf = new AppStorage().GetISOStorage();
			return new IsolatedStorageFileStream( Location, FileMode.Open, isf );
        }