prefix Telerik-based type names with "Rad"
This commit is contained in:
@@ -63,7 +63,15 @@ public static class Extensions
|
||||
/// You usually don't set customClickHandler if you set this parameter to <see cref="true"/>.</param>
|
||||
/// <param name="customClickHandler">Adds a custom click handler. If addDefaultHandler is true, it will only work on <see cref="PluginFeature"/>s.<br/>
|
||||
/// You usually don't set addDefaultHandler to true if you set this parameter to something not null.</param>
|
||||
public static void InsertItemsTo(this IEnumerable<PluginFeature> features, RadItemOwnerCollection itemsCollection, bool addDefaultHandler = false, EventHandler? customClickHandler = null, FeatureInsertMode insertMode = FeatureInsertMode.Default, int? customDefault = null, int? customTop = null, int? customBottom = null, FeatureInsertPosition insertSplitter = FeatureInsertPosition.None)
|
||||
public static void InsertItemsTo(this IEnumerable<PluginFeature> features,
|
||||
RadItemOwnerCollection itemsCollection,
|
||||
bool addDefaultHandler = false,
|
||||
EventHandler? customClickHandler = null,
|
||||
FeatureInsertMode insertMode = FeatureInsertMode.Default,
|
||||
int? customDefault = null,
|
||||
int? customTop = null,
|
||||
int? customBottom = null,
|
||||
FeatureInsertPosition insertSplitter = FeatureInsertPosition.None)
|
||||
{
|
||||
var insertDefault = customDefault ?? (insertMode.HasFlag(FeatureInsertMode.DefaultStart) ? 0 : itemsCollection.Count);
|
||||
var insertTop = customTop ?? (insertMode.HasFlag(FeatureInsertMode.InsertTop) || insertMode.HasFlag(FeatureInsertMode.DefaultStart) ? 0 : insertDefault);
|
||||
@@ -109,7 +117,7 @@ public static class Extensions
|
||||
|
||||
private static void RadMenuItem_RMMethod_Click(object? sender, EventArgs e)
|
||||
{
|
||||
if (sender is RadMenuItem item && item.Tag is PluginModule function)
|
||||
if (sender is RadMenuItem item && item.Tag is RadPluginModule function)
|
||||
function.ShowUI();
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="PluginModuleUI.cs">
|
||||
<Compile Update="RadPluginModuleUI.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -4,7 +4,7 @@ using Telerik.WinControls;
|
||||
|
||||
namespace Pilz.Plugins.Advanced.UI.Telerik;
|
||||
|
||||
public abstract class PluginModule : PluginModule<PluginModuleUI>
|
||||
public abstract class RadPluginModule : PluginModule<RadPluginModuleUI>
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapper for the <see cref="PluginFeature.Icon"/> property to directly use it as <see cref="RadSvgImage"/>.
|
||||
@@ -15,21 +15,21 @@ public abstract class PluginModule : PluginModule<PluginModuleUI>
|
||||
set => base.Icon = value;
|
||||
}
|
||||
|
||||
protected PluginModule(string moduleType, string moduleIdentifier) : base(moduleType, moduleIdentifier)
|
||||
protected RadPluginModule(string moduleType, string moduleIdentifier) : base(moduleType, moduleIdentifier)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected PluginModule(string moduleType, string moduleIdentifier, string moduleName) : base(moduleType, moduleIdentifier, moduleName)
|
||||
protected RadPluginModule(string moduleType, string moduleIdentifier, string moduleName) : base(moduleType, moduleIdentifier, moduleName)
|
||||
{
|
||||
}
|
||||
|
||||
public override void ShowUI(PluginFunctionParameter? @params)
|
||||
{
|
||||
if (CreateNewUI(@params) is PluginModuleUI ui)
|
||||
if (CreateNewUI(@params) is RadPluginModuleUI ui)
|
||||
{
|
||||
ui.BackColor = Color.Transparent;
|
||||
DialogBase.Show(ui, Name!, SvgImage!.ToImage().ToIcon()!);
|
||||
RadDialogBase.Show(ui, Name!, SvgImage!.ToImage().ToIcon()!);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace Pilz.Plugins.Advanced.UI.Telerik;
|
||||
|
||||
public class PluginModuleUI : FlyoutBase, ILoadContent
|
||||
public class RadPluginModuleUI : RadFlyoutBase, ILoadContent
|
||||
{
|
||||
public PluginModuleUI()
|
||||
public RadPluginModuleUI()
|
||||
{
|
||||
ActionPanelVisible = false;
|
||||
}
|
||||
@@ -12,4 +12,4 @@ public class PluginModuleUI : FlyoutBase, ILoadContent
|
||||
public virtual void LoadContent()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user