General cleanup and refactor.

This commit is contained in:
2022-03-07 07:36:44 +00:00
parent bc6e432565
commit 762e3eb6d2
1321 changed files with 44657 additions and 45479 deletions

View File

@@ -30,14 +30,14 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Gui;
using System;
using Aaru.Gui.ViewModels;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using JetBrains.Annotations;
namespace Aaru.Gui;
public sealed class ViewLocator : IDataTemplate
{
public bool SupportsRecycling => false;
@@ -53,9 +53,7 @@ public sealed class ViewLocator : IDataTemplate
var type = Type.GetType(name);
if(type != null)
{
return (Control)Activator.CreateInstance(type);
}
return new TextBlock
{