finally more structure
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
using OwnChar.App.Desktop.UI.MainTabs;
|
||||
using Pilz.Plugins.Advanced;
|
||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||
|
||||
namespace OwnChar.App.Desktop.Features.MainWindow.MainTabs
|
||||
{
|
||||
internal class TabMyGroupsFeature() : PluginModule(FeatureCodes.MainTab, "ownchar.mygroups", "My groups"), IPluginFeatureProvider<TabMyGroupsFeature>
|
||||
{
|
||||
public static TabMyGroupsFeature Instance { get; } = new();
|
||||
|
||||
protected override PluginModuleUI CreateNewUI()
|
||||
{
|
||||
return new TabGroupsView();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using OwnChar.App.Desktop.UI.MainTabs;
|
||||
using Pilz.Plugins.Advanced;
|
||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||
|
||||
namespace OwnChar.App.Desktop.Features.MainWindow.MainTabs
|
||||
{
|
||||
internal class TabMyUserFeature() : PluginModule(FeatureCodes.MainTab, "ownchar.myuser", "My user"), IPluginFeatureProvider<TabMyUserFeature>
|
||||
{
|
||||
public static TabMyUserFeature Instance { get; } = new();
|
||||
|
||||
protected override PluginModuleUI CreateNewUI()
|
||||
{
|
||||
return new TabUserView();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 SettingsFeature() : PluginModule(FeatureCodes.QuickAction, "ownchar.settings", "Settings"), IPluginFeatureProvider<TabMyUserFeature>
|
||||
internal class SettingsFeature() : PluginFunction(FeatureCodes.QuickAction, "ownchar.settings", "Settings"), IPluginFeatureProvider<SettingsFeature>
|
||||
{
|
||||
public static TabMyUserFeature Instance { get; } = new();
|
||||
public static SettingsFeature Instance { get; } = new();
|
||||
|
||||
protected override PluginModuleUI CreateNewUI()
|
||||
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
//return new TabSettings();
|
||||
if (@params is MainWindowParams p)
|
||||
p.Api.OpenTab(new TabSettingsView());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user