Hello there,
I find my self hard to design action enums for events.
f.ex making calculation processor.
so I should have enum like this ? :
public enum CalculatorCoreActions
{
ProcessStarted,
ProcessFinished,
ProcessFailure,
ProcessFailed,
SubstractionStarded,
SubstractionFinished,
SubstractionFailure,
SubstractionFailed,
<etc.>...
}
Or I should make two enums ?, f.ex:
public enum CalculatorAction
{
Process,
Substraction,
Division
}
public enum CalculationActionResult
{
Started,
Finished,
Failure,
Failed
}
Or even I should create an new classes ? :
public class CalculatorActionEventArgs : EventArgs {<...>}
public class CalculatorActionFailedEventArgs : EventArgs {<...>}
public class etc... : EventArgs {<...>}
Which method is the best in your opinion?