mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Project cleanup
This commit is contained in:
1 parent
f5e95e43be
commit
3aa9a632ea
51 files changed
+440
-490
No files matched your search
@@ -13,6 +13,19 @@ namespace Artemis.UI.Stylet
|
||||
|
||||
protected virtual object RootViewModel => _rootViewModel ?? (_rootViewModel = GetInstance(typeof(TRootViewModel)));
|
||||
|
||||
public override object GetInstance(Type type)
|
||||
{
|
||||
return Kernel.Get(type);
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
ScreenExtensions.TryDispose(_rootViewModel);
|
||||
if (Kernel != null)
|
||||
Kernel.Dispose();
|
||||
}
|
||||
|
||||
protected override void ConfigureBootstrapper()
|
||||
{
|
||||
Kernel = new StandardKernel();
|
||||
@@ -49,21 +62,8 @@ namespace Artemis.UI.Stylet
|
||||
{
|
||||
}
|
||||
|
||||
public override object GetInstance(Type type)
|
||||
{
|
||||
return Kernel.Get(type);
|
||||
}
|
||||
|
||||
protected override void Launch()
|
||||
{
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
ScreenExtensions.TryDispose(_rootViewModel);
|
||||
if (Kernel != null)
|
||||
Kernel.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user