mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Shared UI - Flattened namespaces Shared UI - General housekeeping Project - Code cleanup
25 lines
709 B
C#
25 lines
709 B
C#
using Artemis.Core;
|
|
using MaterialDesignThemes.Wpf;
|
|
using Stylet;
|
|
|
|
namespace Artemis.UI.Screens.Settings.Tabs.Plugins
|
|
{
|
|
public class PluginSettingsWindowViewModel : Conductor<PluginConfigurationViewModel>
|
|
{
|
|
public PluginSettingsWindowViewModel(PluginConfigurationViewModel configurationViewModel, PackIconKind icon)
|
|
{
|
|
Icon = icon;
|
|
ActiveItem = configurationViewModel;
|
|
|
|
ActiveItem.Closed += ActiveItemOnClosed;
|
|
}
|
|
|
|
public PackIconKind Icon { get; }
|
|
|
|
private void ActiveItemOnClosed(object? sender, CloseEventArgs e)
|
|
{
|
|
ActiveItem.Closed -= ActiveItemOnClosed;
|
|
RequestClose();
|
|
}
|
|
}
|
|
} |