mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-08 07:46:29 +02:00
More code cleanup
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
using RemSox.UI.CLI;
|
|
||||||
|
|
||||||
namespace RemSox.UI.CLI.Commands;
|
namespace RemSox.UI.CLI.Commands;
|
||||||
|
|
||||||
public sealed class HaltCommand : ICommand
|
public sealed class HaltCommand : ICommand
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using RemSox.UI.CLI;
|
|
||||||
|
|
||||||
namespace RemSox.UI.CLI.Commands;
|
namespace RemSox.UI.CLI.Commands;
|
||||||
|
|
||||||
public sealed class HelpCommand : ICommand
|
public sealed class HelpCommand : ICommand
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using RemSox.Processing;
|
using RemSox.Processing;
|
||||||
using RemSox.UI.CLI;
|
|
||||||
|
|
||||||
namespace RemSox.UI.CLI.Commands;
|
namespace RemSox.UI.CLI.Commands;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using RemSox.Processes;
|
using RemSox.Processes;
|
||||||
using RemSox.Processing;
|
using RemSox.Processing;
|
||||||
using RemSox.UI.CLI;
|
|
||||||
|
|
||||||
namespace RemSox.UI.CLI.Commands;
|
namespace RemSox.UI.CLI.Commands;
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ public abstract class ChangedPropertiesTracker : INotifyPropertyChanged
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Dictionary<string, object?> changes = new();
|
Dictionary<string, object?> changes = [];
|
||||||
foreach (var name in changedPropertyNames)
|
foreach (string name in changedPropertyNames)
|
||||||
{
|
{
|
||||||
if (properties.TryGetValue(name, out var value))
|
if (properties.TryGetValue(name, out object? value))
|
||||||
{
|
{
|
||||||
changes[name] = value;
|
changes[name] = value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user