update progress updater

This commit is contained in:
2022-06-18 16:11:41 +02:00
parent 83b0ca22cd
commit 1488784a81
3 changed files with 4 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using Microsoft.VisualBasic; using Microsoft.VisualBasic;
using Telerik.WinControls.UI;
namespace SM64_ROM_Manager.ProgressUpdater namespace SM64_ROM_Manager.ProgressUpdater
{ {

View File

@@ -30,7 +30,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListDataItem selectedItem = null; RadListDataItem selectedItem = null;
foreach (RadListDataItem item in RadListControl_Paragraph.Items) foreach (RadListDataItem item in RadListControl_Paragraph.Items)
{ {
if (selectedItem == null && item is RadCheckedListDataItem && ((RadCheckedListDataItem)item).Checked) if (selectedItem == null && item.Selected)
selectedItem = item; selectedItem = item;
} }
@@ -73,7 +73,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListControl_Paragraph.Refresh(); RadListControl_Paragraph.Refresh();
if (RadListControl_Paragraph.Items.Any()) if (RadListControl_Paragraph.Items.Any())
((RadCheckedListDataItem)RadListControl_Paragraph.Items[0]).Checked = true; RadListControl_Paragraph.Items[0].Selected = true;
} }
} }

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<StartupObject>SM64_ROM_Manager.ProgressUpdater.My.MyApplication</StartupObject> <StartupObject>SM64_ROM_Manager.ProgressUpdater.My.MyApplication</StartupObject>