Controls: Use nameof(Property) instead of string
All checks were successful
Test / Run tests (push) Successful in 1m43s
All checks were successful
Test / Run tests (push) Successful in 1m43s
This commit is contained in:
@ -60,31 +60,31 @@ namespace Elwig.Windows {
|
||||
protected Document? PrintDocument;
|
||||
protected Dictionary<Member, List<Document>>? EmailDocuments;
|
||||
|
||||
public static readonly DependencyProperty PostalAllCountProperty = DependencyProperty.Register("PostalAllCount", typeof(int), typeof(MailWindow));
|
||||
public static readonly DependencyProperty PostalAllCountProperty = DependencyProperty.Register(nameof(PostalAllCount), typeof(int), typeof(MailWindow));
|
||||
public int PostalAllCount {
|
||||
get => (int)GetValue(PostalAllCountProperty);
|
||||
private set => SetValue(PostalAllCountProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty PostalWishCountProperty = DependencyProperty.Register("PostalWishCount", typeof(int), typeof(MailWindow));
|
||||
public static readonly DependencyProperty PostalWishCountProperty = DependencyProperty.Register(nameof(PostalWishCount), typeof(int), typeof(MailWindow));
|
||||
public int PostalWishCount {
|
||||
get => (int)GetValue(PostalWishCountProperty);
|
||||
private set => SetValue(PostalWishCountProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty PostalNoEmailCountProperty = DependencyProperty.Register("PostalNoEmailCount", typeof(int), typeof(MailWindow));
|
||||
public static readonly DependencyProperty PostalNoEmailCountProperty = DependencyProperty.Register(nameof(PostalNoEmailCount), typeof(int), typeof(MailWindow));
|
||||
public int PostalNoEmailCount {
|
||||
get => (int)GetValue(PostalNoEmailCountProperty);
|
||||
private set => SetValue(PostalNoEmailCountProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty EmailAllCountProperty = DependencyProperty.Register("EmailAllCount", typeof(int), typeof(MailWindow));
|
||||
public static readonly DependencyProperty EmailAllCountProperty = DependencyProperty.Register(nameof(EmailAllCount), typeof(int), typeof(MailWindow));
|
||||
public int EmailAllCount {
|
||||
get => (int)GetValue(EmailAllCountProperty);
|
||||
private set => SetValue(EmailAllCountProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty EmailWishCountProperty = DependencyProperty.Register("EmailWishCount", typeof(int), typeof(MailWindow));
|
||||
public static readonly DependencyProperty EmailWishCountProperty = DependencyProperty.Register(nameof(EmailWishCount), typeof(int), typeof(MailWindow));
|
||||
public int EmailWishCount {
|
||||
get => (int)GetValue(EmailWishCountProperty);
|
||||
private set => SetValue(EmailWishCountProperty, value);
|
||||
|
Reference in New Issue
Block a user