finally more structure
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
using OwnChar.App.Desktop.Features.MainWindow.MainTabs;
|
||||
using OwnChar.App.Desktop.Api.Parameters;
|
||||
using OwnChar.App.Desktop.UI.MainTabs;
|
||||
using Pilz.Plugins.Advanced;
|
||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||
using System;
|
||||
|
||||
namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
||||
{
|
||||
internal class HomeFeature() : PluginModule(FeatureCodes.QuickAction, "ownchar.home", "Home"), IPluginFeatureProvider<TabMyUserFeature>
|
||||
internal class HomeFeature() : PluginFunction(FeatureCodes.QuickAction, "ownchar.home", "Home"), IPluginFeatureProvider<HomeFeature>
|
||||
{
|
||||
public static TabMyUserFeature Instance { get; } = new();
|
||||
public static HomeFeature Instance { get; } = new();
|
||||
|
||||
protected override PluginModuleUI CreateNewUI()
|
||||
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
//return new TabEditChar();
|
||||
if (@params is MainWindowParams p)
|
||||
p.Api.OpenTab(new TabUserView(p.Api, p.Api.Manager?.CurrentUser));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user