コード例 #1
0
        public async Task TestDiffFtp()
        {
            var skinDrive   = new FtpSkinDrive();
            var diffManager = new DiffManager(skinDrive, @"G:\Steam\steamapps\common\IL-2 Sturmovik Battle of Stalingrad");
            var diffs       = await diffManager.GetDiffAsync();

            await diffManager.ExecuteDiff(diffs);
        }
コード例 #2
0
        private async Task GetDiff()
        {
            label_Status.Text = "Checking for skin updates...";

            if (_diffManager == null)
            {
                _diffManager = new DiffManager(new FtpSkinDrive(), _configuration.Il2Path);
            }

            _diffs = (await _diffManager.GetDiffAsync()).OrderBy(x => x.GroupId).ToList();
            PopulateListView(_diffs);
            label_Status.Text = $"{_diffs.Count} updated items found";
        }