loading indicator
This commit is contained in:
@@ -159,8 +159,8 @@ public class PluginManager<TPluginInterface, TPluginRuntimeInfo> where TPluginIn
|
||||
{
|
||||
if (result.Assembly == null)
|
||||
result.Status = PluginLoadStatus.NoValidPlugin;
|
||||
//else if (loadedPlugins.Any(n => n.Assembly == result.Assembly))
|
||||
// result.Status = PluginLoadStatus.AlreadyLoaded;
|
||||
else if (loadedPlugins.Any(n => n.Assembly == result.Assembly))
|
||||
result.Status = PluginLoadStatus.AlreadyLoaded;
|
||||
else
|
||||
{
|
||||
foreach (var type in result.Assembly.GetTypes())
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
using Telerik.WinControls;
|
||||
using Telerik.WinControls.UI;
|
||||
|
||||
namespace Pilz.UI.WinForms.Telerik.Extensions;
|
||||
|
||||
public static class RadListViewElementExtensions
|
||||
{
|
||||
public static void Clear(this RadListViewElement @this)
|
||||
{
|
||||
@this.Items.Clear();
|
||||
@this.Groups.Clear();
|
||||
}
|
||||
|
||||
public static void SetStatus(this RadListViewElement @this, string text)
|
||||
{
|
||||
@this.BeginUpdate();
|
||||
@this.Clear();
|
||||
@this.Items.Add(new ListViewDataItem(text));
|
||||
@this.EndUpdate();
|
||||
}
|
||||
|
||||
public static void SetStatus(this RadListViewElement @this, string text, RadSvgImage icon)
|
||||
{
|
||||
@this.BeginUpdate();
|
||||
@this.Clear();
|
||||
@this.Items.Add(new ListViewDataItem(text)
|
||||
{
|
||||
SvgImage = icon,
|
||||
});
|
||||
@this.EndUpdate();
|
||||
}
|
||||
}
|
||||
32
Pilz.UI.WinForms.Telerik/Extensions/RadListViewExtensions.cs
Normal file
32
Pilz.UI.WinForms.Telerik/Extensions/RadListViewExtensions.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user