Skip to content

Commit 0dab509

Browse files
committed
dotnet format
1 parent 70a3eb9 commit 0dab509

10 files changed

+18
-13
lines changed

Source/NETworkManager/ViewModels/ARPTableViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,8 @@ private async Task AddEntryAction()
481481
StatusMessage = ex.Message;
482482
IsStatusMessageDisplayed = true;
483483
}
484-
}, _ => {
484+
}, _ =>
485+
{
485486
childWindow.IsOpen = false;
486487
ConfigurationManager.Current.IsChildWindowOpen = false;
487488
});

Source/NETworkManager/ViewModels/DNSLookupSettingsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public DNSLookupSettingsViewModel()
335335
};
336336

337337
SelectedDNSServer = DNSServers.Cast<DNSServerConnectionInfoProfile>().FirstOrDefault(x => !x.UseWindowsDNSServer);
338-
338+
339339
LoadSettings();
340340

341341
_isLoading = false;

Source/NETworkManager/ViewModels/NetworkInterfaceViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,8 @@ private async Task AddIPv4AddressAction()
12231223
ConfigurationManager.Current.IsChildWindowOpen = false;
12241224

12251225
await AddIPv4Address(instance.IPAddress, instance.Subnetmask);
1226-
}, _ => {
1226+
}, _ =>
1227+
{
12271228
childWindow.IsOpen = false;
12281229
ConfigurationManager.Current.IsChildWindowOpen = false;
12291230
});

Source/NETworkManager/ViewModels/RemoteDesktopHostViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ private async void SendCtrlAltDelAction(object view)
373373
{
374374
ConfigurationManager.OnDialogOpen();
375375

376-
await DialogHelper.ShowMessageAsync(Application.Current.MainWindow, Strings.Error,
377-
$"{Strings.CouldNotSendKeystroke}\n\nMessage:\n{ex.Message}", ChildWindowIcon.Error);
376+
await DialogHelper.ShowMessageAsync(Application.Current.MainWindow, Strings.Error,
377+
$"{Strings.CouldNotSendKeystroke}\n\nMessage:\n{ex.Message}", ChildWindowIcon.Error);
378378

379379
ConfigurationManager.OnDialogClose();
380380
}

Source/NETworkManager/ViewModels/SNMPOIDProfilesViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public SNMPOIDProfilesViewModel(Action<SNMPOIDProfilesViewModel> okCommand,
3838
return info.Name.IndexOf(search, StringComparison.OrdinalIgnoreCase) > -1 ||
3939
info.OID.IndexOf(search, StringComparison.OrdinalIgnoreCase) > -1;
4040
};
41-
41+
4242
SelectedOIDProfile = OIDProfiles.Cast<SNMPOIDProfileInfo>().FirstOrDefault();
4343
}
4444

Source/NETworkManager/ViewModels/SNMPSettingsViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ public async Task EditOIDProfile()
192192
SettingsManager.Current.SNMP_OidProfiles.Remove(SelectedOIDProfile);
193193
SettingsManager.Current.SNMP_OidProfiles.Add(new SNMPOIDProfileInfo(instance.Name, instance.OID,
194194
instance.Mode));
195-
}, async _ => {
195+
}, async _ =>
196+
{
196197
childWindow.IsOpen = false;
197198
ConfigurationManager.Current.IsChildWindowOpen = false;
198199
}, true, SelectedOIDProfile);

Source/NETworkManager/ViewModels/SNMPViewModel.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,14 @@ private async Task OpenOIDProfileSelection()
655655
{
656656
childWindow.IsOpen = false;
657657
ConfigurationManager.Current.IsChildWindowOpen = false;
658-
658+
659659
if (instance.SelectedOIDProfile == null)
660660
return;
661661

662662
Mode = instance.SelectedOIDProfile.Mode;
663663
Oid = instance.SelectedOIDProfile?.OID;
664-
}, async _ => {
664+
}, async _ =>
665+
{
665666
childWindow.IsOpen = false;
666667
ConfigurationManager.Current.IsChildWindowOpen = false;
667668
});

Source/NETworkManager/ViewModels/WiFiViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,8 @@ private Task Connect()
892892
// Wait because an error may occur if a refresh is done directly after connecting.
893893
await ScanAsync(SelectedAdapter, true, 5000);
894894
},
895-
_ => {
895+
_ =>
896+
{
896897
childWindow.IsOpen = false;
897898
ConfigurationManager.Current.IsChildWindowOpen = false;
898899
}, (selectedAdapter, selectedNetwork),

Source/NETworkManager/Views/WiFiConnectChildWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public WiFiConnectChildWindow()
1414
private void ChildWindow_OnLoaded(object sender, RoutedEventArgs e)
1515
{
1616
Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(delegate
17-
{
18-
if(PasswordBoxPreSharedKey.Visibility == Visibility.Visible)
17+
{
18+
if (PasswordBoxPreSharedKey.Visibility == Visibility.Visible)
1919
PasswordBoxPreSharedKey.Focus();
2020
else
2121
PasswordBoxPreSharedKey.Focus();

Source/NETworkManager/Views/WiFiView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public WiFiView()
1313
_viewModel = new WiFiViewModel();
1414

1515
InitializeComponent();
16-
16+
1717
DataContext = _viewModel;
1818
}
1919

0 commit comments

Comments
 (0)