loading indicator

This commit is contained in:
Pilzinsel64
2025-10-21 13:16:51 +02:00
parent 6fb68f282a
commit b27fe9362a
3 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
using Telerik.WinControls;
using Telerik.WinControls.UI;
namespace Pilz.UI.WinForms.Telerik.Extensions;
public static class RadListViewExtensions
{
public static void Clear(this RadListView @this)
{
@this.Items.Clear();
@this.Groups.Clear();
}
public static void SetStatus(this RadListView @this, string text)
{
@this.BeginUpdate();
@this.Clear();
@this.Items.Add(new ListViewDataItem(text));
@this.EndUpdate();
}
public static void SetStatus(this RadListView @this, string text, RadSvgImage? icon)
{
@this.BeginUpdate();
@this.Clear();
@this.Items.Add(new ListViewDataItem(text)
{
SvgImage = icon,
});
@this.EndUpdate();
}
}