Skip to content

Commit ca64318

Browse files
committed
Chore: Refactoring
1 parent dc62c4c commit ca64318

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Source/NETworkManager.Converters/RemoteDesktopKeyboardHookModeToStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public sealed class RemoteDesktopKeyboardHookModeToStringConverter : IValueConve
2121
/// <returns>Translated <see cref="KeyboardHookMode"/>.</returns>
2222
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2323
{
24-
if (!(value is KeyboardHookMode keyboardHookMode))
24+
if (value is not KeyboardHookMode keyboardHookMode)
2525
return "-/-";
2626

2727
return RemoteDesktopKeyboardHookModeTranslator.GetInstance().Translate(keyboardHookMode);

Source/NETworkManager.Settings/SettingsInfo.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public string Version
5454
}
5555

5656
#region General
57-
// General
57+
// General
5858
private ApplicationName _general_DefaultApplicationViewName = GlobalStaticConfiguration.General_DefaultApplicationViewName;
5959
public ApplicationName General_DefaultApplicationViewName
6060
{
@@ -3207,7 +3207,7 @@ public ObservableCollection<string> SNMP_OIDHistory
32073207
SettingsChanged = true;
32083208
}
32093209
}
3210-
3210+
32113211
private ObservableCollection<SNMPOIDProfileInfo> _snmp_OIDProfiles = new();
32123212
public ObservableCollection<SNMPOIDProfileInfo> SNMP_OIDProfiles
32133213
{
@@ -3222,7 +3222,7 @@ public ObservableCollection<SNMPOIDProfileInfo> SNMP_OIDProfiles
32223222
SettingsChanged = true;
32233223
}
32243224
}
3225-
3225+
32263226
private int _snmp_Timeout = GlobalStaticConfiguration.SNMP_Timeout;
32273227
public int SNMP_Timeout
32283228
{
@@ -3252,7 +3252,7 @@ public WalkMode SNMP_WalkMode
32523252
SettingsChanged = true;
32533253
}
32543254
}
3255-
3255+
32563256
private int _snmp_port = 161;
32573257
public int SNMP_Port
32583258
{
@@ -3267,7 +3267,7 @@ public int SNMP_Port
32673267
SettingsChanged = true;
32683268
}
32693269
}
3270-
3270+
32713271
private SNMPMode _snmp_Mode = GlobalStaticConfiguration.SNMP_Mode;
32723272
public SNMPMode SNMP_Mode
32733273
{
@@ -3373,7 +3373,7 @@ public double SNMP_ProfileWidth
33733373
}
33743374
}
33753375

3376-
3376+
33773377
private string _snmp_ExportFilePath;
33783378
public string SNMP_ExportFilePath
33793379
{

Source/NETworkManager/ViewModels/SettingsGeneralViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public ICommand VisibleToHideApplicationCommand
205205

206206
private void VisibleToHideApplicationAction()
207207
{
208-
var newDefaultApplication = DefaultApplicationSelectedItem.Name == VisibleApplicationSelectedItem.Name;
208+
var selectNewDefaultApplication = DefaultApplicationSelectedItem.Name == VisibleApplicationSelectedItem.Name;
209209

210210
// Remove and add will fire a collection changed event --> detected in MainWindow
211211
var info = SettingsManager.Current.General_ApplicationList.First(x => VisibleApplicationSelectedItem.Name.Equals(x.Name));
@@ -215,7 +215,7 @@ private void VisibleToHideApplicationAction()
215215
SettingsManager.Current.General_ApplicationList.Remove(info);
216216
SettingsManager.Current.General_ApplicationList.Add(info);
217217

218-
if (newDefaultApplication)
218+
if (selectNewDefaultApplication)
219219
DefaultApplicationSelectedItem = ApplicationsVisible.Cast<ApplicationInfo>().FirstOrDefault();
220220

221221
ValidateHideVisibleApplications();

0 commit comments

Comments
 (0)