ae7c3a3fff
- 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
15 lines
375 B
C#
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);
|
|
}
|
|
}
|