コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
 public void Clean()
 {
     ThreadExecuter.Execute(
         () => repo.Clean()
         );
 }