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); }
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"; }