32 lines
740 B
C#
32 lines
740 B
C#
using CommunityToolkit.Mvvm.DependencyInjection;
|
|
using FastBill.ViewModels;
|
|
using FastBill.Views;
|
|
using PSCHelpdesk.Shared.Plugin;
|
|
using PSCHelpdesk.Shared.Service;
|
|
using PSCHelpdesk.Shared.Setting;
|
|
|
|
namespace FastBill;
|
|
|
|
public class FastBill: Contract
|
|
{
|
|
public string GetName()
|
|
{
|
|
return "FastBill";
|
|
}
|
|
|
|
public void Configure()
|
|
{
|
|
var settingsService = Ioc.Default.GetRequiredService<ISettingsService>();
|
|
var fastbillSettings = new Item()
|
|
{
|
|
Header = "Fastbill",
|
|
CommandParameter = new SettingsViewModel()
|
|
};
|
|
settingsService.AddSetting(fastbillSettings);
|
|
}
|
|
|
|
public List<Type> LoadViews()
|
|
{
|
|
return [typeof(SettingsView)];
|
|
}
|
|
} |