Removed Operation.OperationType

- Since OperationType instanciates two new operation this results in a stack overflow.
This commit is contained in:
adroslice 2019-11-16 03:50:55 +01:00
parent 0eb940012d
commit c51f848a31
2 changed files with 0 additions and 3 deletions

View File

@ -4,7 +4,6 @@ using System.Linq;
using Avalonia;
using BFR.DataModels;
using BFR.Helpers;
namespace BFR.Operations
{
@ -16,7 +15,6 @@ namespace BFR.Operations
public bool IsEnabled { get; set; } = true;
public abstract string Name { get; }
public abstract string Description { get; }
public abstract OperationType OperationType { get; }
protected abstract void ApplyToInternal(IList<FileModel> files);

View File

@ -9,7 +9,6 @@ namespace BFR.Operations
// Operation Info
public override string Name => nameof(Overwrite);
public override string Description => "Overwrites all file names. To produce a valid result this has to be combined with numbering.";
public override OperationType OperationType { get; } = OperationType.Make<Overwrite>();
// Operation Parameters
public string Replacement { get; set; } = "";