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.Linq;
using Microsoft.VisualBasic;
using Telerik.WinControls.UI;
namespace SM64_ROM_Manager.ProgressUpdater
{

View File

@@ -30,7 +30,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListDataItem selectedItem = null;
foreach (RadListDataItem item in RadListControl_Paragraph.Items)
{
if (selectedItem == null && item is RadCheckedListDataItem && ((RadCheckedListDataItem)item).Checked)
if (selectedItem == null && item.Selected)
selectedItem = item;
}
@@ -73,7 +73,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListControl_Paragraph.Refresh();
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>
<OutputType>WinExe</OutputType>
<StartupObject>SM64_ROM_Manager.ProgressUpdater.My.MyApplication</StartupObject>