forked from Dawn-of-Light/PacketLogConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ILogAction.cs
26 lines (25 loc) · 868 Bytes
/
ILogAction.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace PacketLogConverter
{
/// <summary>
/// An action on selected in the log packet.
/// </summary>
public interface ILogAction
{
/// <summary>
/// Determines whether the action is enabled.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="selectedPacket">The selected packet.</param>
/// <returns>
/// <c>true</c> if the action is enabled; otherwise, <c>false</c>.
/// </returns>
bool IsEnabled(IExecutionContext context, PacketLocation selectedPacket);
/// <summary>
/// Activates a log action.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="selectedPacket">The selected packet.</param>
/// <returns><c>true</c> if log data tab should be updated.</returns>
bool Activate(IExecutionContext context, PacketLocation selectedPacket);
}
}