bfr/BFR/Operations/OperationMode.cs
adroslice ae7c3a3fff OperationMode overhaul, improved event handling, fixed properties
- OperationMode now designed and implemented in a way that allows serialization
- Modes are now defined using an enumeration with with attributes decorated values
- MainWindow.xaml.cs's event handlers now only listen for changes to certain properties
- Property naming conventions fixed
- AvaloniaProperties are now public + static + readonly
2019-11-21 19:07:46 +01:00

15 lines
375 B
C#

using System;
namespace BFR.Operations
{
public abstract class OperationMode<T> where T : Enum
{
public T Index { get; }
public string Name { get; }
public string Description { get; }
protected OperationMode(T index, string name, string description) =>
(Index, Name, Description) = (index, name, description);
}
}