c519147302
- 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
15 lines
423 B
C#
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) { }
|
|
}
|
|
}
|