프로젝트

일반

사용자정보

개정판 9d5b4bc2

ID9d5b4bc2a51cca1c27b02aeb9fb33eb075932bcd
상위 2007ecaa
하위 664ea2e1

김태성이(가) 4년 이상 전에 추가함

auto Update 기능 추가

Change-Id: I195d4506bd1dd9cfd58dbdeada74e89a1b9d307e

차이점 보기:

KCOM/PageManager/PageStorage.cs
20 20
        BackgroundWorker backgroundWorker;
21 21

  
22 22
        //List<PageItem> fileItems = new List<PageItem>();
23
        string _localStorage;
23
        public string LocalStorage;
24 24
        string _fileExt;
25 25
        string _BaseUri;
26 26
        int _TotalPages;
......
39 39
                backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged;
40 40
                _fileExt = fileExt;
41 41
                _BaseUri = BaseUri;
42
                _localStorage = localStoragePath;
42
                LocalStorage = localStoragePath;
43 43
                _TotalPages = totalPages;
44 44
                _TakeCount = takeCount;
45 45

  
46
                System.IO.Directory.CreateDirectory(_localStorage);
46
                System.IO.Directory.CreateDirectory(LocalStorage);
47 47

  
48 48
                //backgroundWorker.RunWorkerAsync(new int[] { 1, 10 });
49 49
            }
......
251 251

  
252 252
                    System.Diagnostics.Debug.WriteLine("DownloadPageAsync down");
253 253

  
254
                    string downloadFilePath = System.IO.Path.Combine(_localStorage, PageNo.ToString() + "." + _fileExt);
254
                    string downloadFilePath = System.IO.Path.Combine(LocalStorage, PageNo.ToString() + "." + _fileExt);
255 255

  
256 256
                    Uri originalUri = new Uri(_BaseUri.Replace("{PageNo}", PageNo.ToString()));
257 257

  
......
348 348
                    System.IO.File.Delete(item.LocalFilePath);
349 349
                }
350 350

  
351
                System.IO.Directory.Delete(_localStorage, true);
351
                System.IO.Directory.Delete(LocalStorage, true);
352 352
            }
353 353
            catch (Exception ex)
354 354
            {

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)