예제 #1
0
        private void loadDataWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            CASCConfig.Load(CASCHandler.OnlineMode);
            CDNHandler.Initialize(CASCHandler.OnlineMode);

            cascHandler = new CASCHandler(root, sender as BackgroundWorker);
            e.Result    = CASCHandler.FileNames.Count;
        }
예제 #2
0
        private static CASCHandler Open(BackgroundWorker worker, CASCConfig config)
        {
            var cdn = CDNHandler.Initialize(config);

            return(new CASCHandler(config, cdn, worker));
        }