private void buttonForceUpdate_Click(object sender, EventArgs e) { _databaseSettingRepo.Clean(); foreach (ListViewItem lvi in listViewInstalls.SelectedItems) { var mod = listViewMods.SelectedItems[0].Tag as ListViewEntry; var entry = lvi.Tag as ListViewEntry; ForceDatabaseUpdate(entry.Path, mod?.Path); _databaseSettingRepo.UpdateCurrentDatabase(entry.Path); } }
private void buttonForceUpdate_Click(object sender, EventArgs e) { _databaseSettingRepo.Clean(); foreach (ListViewItem lvi in listViewInstalls.SelectedItems) { var mod = listViewMods.SelectedItems[0].Tag as ListViewEntry; var entry = lvi.Tag as ListViewEntry; ForceDatabaseUpdate(entry.Path, mod?.Path); _databaseSettingRepo.UpdateCurrentDatabase(entry.Path); // Store the loaded GD path, so we can poll it for updates later. //_settingsService.GetLocal().GrimDawnLocation = new List<string> { entry.Path }; // TODO: Wtf is this? Why overwrite any existing? _settingsService.GetLocal().GrimDawnLocationLastModified = ParsingService.GetHighestTimestamp(entry.Path); _settingsService.GetLocal().HasWarnedGrimDawnUpdate = false; } }
public void Clean() { ThreadExecuter.Execute( () => repo.Clean() ); }