Add specific text to weighing button
This commit is contained in:
@ -67,6 +67,10 @@ namespace Elwig.Windows {
|
||||
if (n < 3) WeighingCButton.Visibility = Visibility.Hidden;
|
||||
if (n < 4) WeighingDButton.Visibility = Visibility.Hidden;
|
||||
if (n == 1) WeighingAButton.Content = "Wiegen";
|
||||
if (n > 1) WeighingAButton.Content = $"Wiegen {App.Scales[0].ScaleId}";
|
||||
if (n >= 2) WeighingBButton.Content = $"Wiegen {App.Scales[1].ScaleId}";
|
||||
if (n >= 3) WeighingCButton.Content = $"Wiegen {App.Scales[2].ScaleId}";
|
||||
if (n >= 4) WeighingDButton.Content = $"Wiegen {App.Scales[3].ScaleId}";
|
||||
} else {
|
||||
WeighingManualButton.Visibility = Visibility.Hidden;
|
||||
WeighingAButton.Visibility = Visibility.Hidden;
|
||||
|
Reference in New Issue
Block a user