Skip to content

Commit

Permalink
Fix a few message issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ousiax committed Dec 12, 2023
1 parent 43cf1b3 commit a2a8976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Leo.Wpf.App.Infrastructure
{
public partial class Constants
{
public static Dictionary<string, string> Genders = new()
public static readonly Dictionary<string, string> Genders = new()
{
{"Unkonw", GetString("Unkonw") },
{"Male", GetString("Male") },
Expand Down
4 changes: 2 additions & 2 deletions src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ private void FindCustomer()
_findWindow.ShowDialog();
}

private bool CanEditCustomer(CustomerViewModel? customer)
private static bool CanEditCustomer(CustomerViewModel? customer)
{
return customer != null;
}

private bool CanNewCustomerDetail(string? customerId)
private static bool CanNewCustomerDetail(string? customerId)
{
return customerId != null;
}
Expand Down

0 comments on commit a2a8976

Please sign in to comment.