Skip to content

Commit 8bde342

Browse files
committed
Apply "dotnet format ."
1 parent facc504 commit 8bde342

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1028
-1025
lines changed

Source/NETworkManager.Converters/BoolArrayToFwRuleCategoriesConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
3030

3131
if (boolArray.All(b => b))
3232
return Strings.All;
33-
33+
3434
for (var i = 0; i < expectedLength; i++)
3535
{
3636
if (boolArray[i])

Source/NETworkManager.Converters/CollectionPropertyBooleanOrConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
5656

5757
private ConcurrentDictionary<string, PropertyInfo> Cache { get; } = new();
5858
}
59-
59+
6060
// Concrete implementation for XAML usage
6161
public class FirewallRuleViewModelBooleanOrConverter : CollectionPropertyBooleanOrConverter<IFirewallRuleViewModel>;
6262
}

Source/NETworkManager.Converters/CollectionPropertyVisibilityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
3232
propertyInfo = typeof(T).GetProperty(propertyName);
3333
Cache.TryAdd(propertyName, propertyInfo);
3434
}
35-
35+
3636
if (propertyInfo == null)
3737
return Visibility.Collapsed;
3838

Source/NETworkManager.Converters/EmptyToIntMaxValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class EmptyToIntMaxValueConverter : IValueConverter
88
{
99
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1010
{
11-
const int fallback = int.MaxValue;
11+
const int fallback = int.MaxValue;
1212
if (targetType == typeof(int))
1313
{
1414
if (value is not string strValue)

Source/NETworkManager.Converters/EnumToStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
6161
return fallback;
6262
return result;
6363
}
64-
64+
6565
var enumString = Enum.GetName(enumValue.GetType(), value);
6666
if (enumString is null)
6767
return string.Empty;

Source/NETworkManager.Converters/TimeToStrokeDashOffsetConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur
1717
!double.TryParse(circumferenceStr, NumberStyles.Float, CultureInfo.InvariantCulture,
1818
out var circumference))
1919
return 0.0;
20-
20+
2121
if (values.Length < 2 ||
2222
values[0] is not double time ||
2323
values[1] is not double timeMax ||

Source/NETworkManager.Documentation/DocumentationIdentifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ public enum DocumentationIdentifier
134134
/// ARP Table documentation page.
135135
/// </summary>
136136
ApplicationArpTable,
137-
137+
138138
/// <summary>
139139
/// Firewall documentation page.
140140
/// </summary>
141141
ApplicationFirewall,
142-
142+
143143
/// <summary>
144144
/// Settings\General documentation page.
145145
/// </summary>

Source/NETworkManager.Documentation/DocumentationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static class DocumentationManager
9797

9898
new DocumentationInfo(DocumentationIdentifier.ApplicationArpTable,
9999
@"docs/application/arp-table"),
100-
100+
101101
new DocumentationInfo(DocumentationIdentifier.ApplicationFirewall,
102102
@"docs/application/firewall"),
103103

Source/NETworkManager.Interfaces/ViewModels/IFirewallRuleViewModel.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ namespace NETworkManager.Interfaces.ViewModels;
99
public interface IFirewallRuleViewModel
1010
{
1111
public bool NetworkProfileDomain { get; }
12-
12+
1313
public bool NetworkProfilePrivate { get; }
14-
14+
1515
public bool NetworkProfilePublic { get; }
16-
16+
1717
public List<FirewallPortSpecification>? LocalPorts { get; }
18-
18+
1919
public List<FirewallPortSpecification>? RemotePorts { get; }
20-
20+
2121
public FirewallRuleProgram? Program { get; }
22-
22+
2323
public int MaxLengthName { get; }
24-
24+
2525
public string? UserDefinedName { get; }
26-
26+
2727
public bool NameHasError { get; set; }
28-
28+
2929
public bool HasError { get; }
3030
}

Source/NETworkManager.Interfaces/ViewModels/IFirewallViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ namespace NETworkManager.Interfaces.ViewModels;
66
public interface IFirewallViewModel
77
{
88
public ObservableCollection<IFirewallRuleViewModel> FirewallRulesInterface { get; }
9-
9+
1010
public ICommand ExpandAllProfileGroupsCommand { get; }
11-
11+
1212
public ICommand CollapseAllProfileGroupsCommand { get; }
13-
13+
1414
public int MaxLengthHistory { get; }
15-
15+
1616
public static IFirewallViewModel? Instance { get; set; }
1717

1818
public static void SetInstance(IFirewallViewModel? viewModel)

0 commit comments

Comments
 (0)