void _loader_OnScanFinish() { if (this.InvokeRequired) { BaseProcessor.OnFinishHandler hand = new BaseProcessor.OnFinishHandler(_loader_OnScanFinish); this.BeginInvoke(hand, new object[] { }); return; } Free(); progressMain.ProgressText = "Scanning Done. " + fastListView.Items.Count + " games scanned"; progressMain.Value = 0; progressSub.ProgressText = string.Empty; progressSub.Value = 0; if (fastListView.SelectedIndices.Count == 0) { fastListView.Focus(); fastListView.SelectObject(fastListView.GetModelObject(0)); // fastListView.GetItem(0)VirtualDataSource.GetNthObject(0), true); // fastListView.SelectObject(fastListView.VirtualDataSource.GetNthObject(0), true); } fastListView.Sort(0); GenInfo(); GenCache(); }
void _loader_OnFinish() { if (this.InvokeRequired) { BaseProcessor.OnFinishHandler hand = new BaseProcessor.OnFinishHandler(_loader_OnFinish); this.BeginInvoke(hand, new object[] { }); return; } Free(); progressMain.ProgressText = "Done"; progressMain.Value = 0; progressSub.ProgressText = string.Empty; progressSub.Value = 0; GenInfo(); GenCache(); }