OpenLocalStorage() public static method

public static OpenLocalStorage ( string basePath, BackgroundWorkerEx worker = null ) : CASCHandler
basePath string
worker BackgroundWorkerEx
return CASCHandler
Example #1
0
        private void loadDataWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            var worker = sender as BackgroundWorker;

            cascHandler = Settings.Default.OnlineMode
                ? CASCHandler.OpenOnlineStorage(worker)
                : CASCHandler.OpenLocalStorage(Settings.Default.WowPath, worker);

            root     = LoadListFile(cascHandler, Path.Combine(Application.StartupPath, "listfile.txt"), worker);
            e.Result = CASCHandler.FileNames.Count;
        }