Exemple #1
0
        public VirtualizingDataCollection LoadTextAsync()
        {
            var path = string.Format("{0}/{1}", this.Directory, this.Filename);

            if (!IsLoaded)
            {
                ThreadPool.QueueUserWorkItem(state =>
                {
                    try { ReadTextFromFile(state as string); }
                    catch (IsolatedStorageException)
                    {
                        AwfulDebugger.SaveAndDispose();
                        ReadTextFromFile(state as string);
                    }
                }, path);
            }

            return(this._collection);
        }