Skip to content

Commit d5209a1

Browse files
committed
Code style
1 parent aeb36bb commit d5209a1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

IPConfig/Models/EditableIPConfigModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public EditableIPConfigModel(string name) : base(name)
3636

3737
public bool IsPropertyChanged<T>(Func<IPConfigModel, T> property) where T : notnull
3838
{
39-
return IsPropertyChanged<T>(property, out _);
39+
return IsPropertyChanged(property, out _);
4040
}
4141

4242
public bool IsPropertyChanged<T>(Func<IPConfigModel, T> property, [NotNullWhen(true)] out T? oldValue) where T : notnull
@@ -82,7 +82,7 @@ public bool IsPropertyError<T>(Expression<Func<IPConfigModel, T>> property, out
8282

8383
public bool IsPropertyError<T>(Expression<Func<IPConfigModel, T>> property)
8484
{
85-
return IsPropertyError<T>(property, out _);
85+
return IsPropertyError(property, out _);
8686
}
8787

8888
protected override void OnPropertyChanged(PropertyChangedEventArgs e)

IPConfig/Models/IPv4Mask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public override string ToString()
4747

4848
public enum IPv4MaskClass
4949
{
50-
[Languages.LocalizedDescription(LangKey.Default)]
50+
[LocalizedDescription(LangKey.Default)]
5151
Default = 1,
5252

5353
[Description("/0 ~ /8")]

IPConfig/ViewModels/IPConfigDetailViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ private void Save()
555555

556556
if (EditingIPConfigSender is MainViewModel)
557557
{
558-
Messenger.Send<EditableIPConfigModel, string>(EditingIPConfig, "MakeSelectedNicIPConfigCopy");
558+
Messenger.Send(EditingIPConfig, "MakeSelectedNicIPConfigCopy");
559559
}
560560

561561
Growl.Success(new() {

IPConfig/ViewModels/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private void LoadLastUsedIPv4Config()
385385
[RelayCommand(CanExecute = nameof(IsSelectedNicNotNull))]
386386
private void MakeSelectedNicIPConfigCopy()
387387
{
388-
Messenger.Send<EditableIPConfigModel, string>(SelectedNicIPConfig!, "MakeSelectedNicIPConfigCopy");
388+
Messenger.Send(SelectedNicIPConfig!, "MakeSelectedNicIPConfigCopy");
389389
}
390390

391391
[RelayCommand(CanExecute = nameof(IsSelectedNicNotNull))]

0 commit comments

Comments
 (0)