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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user