-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui improved Nlog added Localization added
- Loading branch information
1 parent
dfc655f
commit 4e3cd2c
Showing
51 changed files
with
943 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
WindowsAdvancedFirewallApi/Events/Arguments/FirewallDataEventArgs.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
WindowsAdvancedFirewallApi/Events/Arguments/FirewallExtendedApplicationEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using NLog; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using WindowsAdvancedFirewallApi.Events.Objects; | ||
using WindowsAdvancedFirewallApi.Utils; | ||
|
||
namespace WindowsAdvancedFirewallApi.Events.Arguments | ||
{ | ||
public abstract class FirewallExtendedApplicationEventArgs<TData> : FirewallEventArgs<TData> where TData : FirewallBaseObject, new() | ||
{ | ||
public string ModifyingApplication { get; protected set; } | ||
|
||
internal FirewallExtendedApplicationEventArgs(EventLogEntry @event) : base(@event) | ||
{ | ||
} | ||
|
||
protected void SetAttributes(int iModifiyingUser, int iModifyingApplication) | ||
{ | ||
SetAttributes(iModifiyingUser); | ||
|
||
ModifyingApplication = FirewallLogEvent.ReplacementStrings[iModifyingApplication]; | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
WindowsAdvancedFirewallApi/Events/Arguments/FirewallExtendedOriginEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using NLog; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using WindowsAdvancedFirewallApi.Events.Objects; | ||
using WindowsAdvancedFirewallApi.Utils; | ||
|
||
namespace WindowsAdvancedFirewallApi.Events.Arguments | ||
{ | ||
public abstract class FirewallExtendedOriginEventArgs<TData> : FirewallExtendedApplicationEventArgs<TData> where TData : FirewallBaseObject, new() | ||
{ | ||
public int Origin { get; protected set; } | ||
|
||
internal FirewallExtendedOriginEventArgs(EventLogEntry @event) : base(@event) | ||
{ | ||
} | ||
|
||
protected void SetAttributes(int iOrigin, int iModifiyingUser, int iModifyingApplication) | ||
{ | ||
SetAttributes(iModifiyingUser, iModifyingApplication); | ||
|
||
Origin = PrimitiveUtils.ParseInteger(FirewallLogEvent.ReplacementStrings[iOrigin], 0); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
WindowsAdvancedFirewallApi/Events/Arguments/FirewallHistoryLoadingStatusChangedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace WindowsAdvancedFirewallApi.Events.Arguments | ||
{ | ||
public class FirewallHistoryLoadingStatusChangedEventArgs | ||
{ | ||
public int LoadedCount { get; internal set; } | ||
public int MaxCount { get; internal set; } | ||
public FirewallBaseEventArgs CurrentLoadedEvent { get; internal set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.