bfr/BFR/Operations/ReplaceMode.cs
adroslice c519147302 Added Replace-Operation, structuring and reworked event bindings
- Added Replace-Operation + UI
- Added OperationMode to make it easier to give operations different modes
- Replaced all specific-control-event-handlers with one general PropertyChanged-event-handler for each preview and filter
- TODO: Add Remove-Operation as a subclass of Replace
2019-11-17 16:22:19 +01:00

15 lines
423 B
C#

namespace BFR.Operations
{
public class ReplaceMode : OperationMode
{
public bool IsPatternMode => Index == 0;
public bool IsCharactersMode => Index == 1;
public bool IsFromNToNMode => Index == 2;
public bool IsFirstNMode => Index == 3;
public bool IsLastNMode => Index == 4;
public ReplaceMode(int index, string name) :
base(index, name) { }
}
}