[#80] Elwig: Add client parameter to switch between simple and red/white business share mode
Test / Run tests (push) Successful in 2m20s
Test / Run tests (push) Successful in 2m20s
This commit is contained in:
@@ -13,6 +13,7 @@ using Elwig.Dialogs;
|
||||
using Elwig.Services;
|
||||
using Elwig.ViewModels;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
public partial class MemberAdminWindow : AdministrationWindow {
|
||||
@@ -43,7 +44,7 @@ namespace Elwig.Windows {
|
||||
RequiredInputs = [
|
||||
MgNrInput, GivenNameInput, NameInput,
|
||||
AddressInput, PlzInput, OrtInput, BillingOrtInput,
|
||||
BusinessSharesInput, BranchInput, DefaultKgInput
|
||||
BusinessShares1Input, BusinessShares2Input, BusinessShares3Input, BranchInput, DefaultKgInput
|
||||
];
|
||||
EmailAddressInputs = [
|
||||
(EmailAddress1Label, EmailAddress1Input),
|
||||
@@ -84,6 +85,24 @@ namespace Elwig.Windows {
|
||||
Menu_Export_UploadAll.IsEnabled = App.Config.SyncUrl != null;
|
||||
ViewModel.ShowOnlyActiveMembers = true;
|
||||
|
||||
if (App.Client.HasRedWhite) {
|
||||
BusinessSharesLabel.Content = "(rot/weiß/ruhend)";
|
||||
//BusinessShares1Input.Background = Brushes.MistyRose;
|
||||
BusinessShares1Input.Foreground = Brushes.DarkRed;
|
||||
BusinessShares1Input.ToolTip = "Geschäftsanteile (rot)";
|
||||
//BusinessShares2Input.Background = Brushes.MintCream;
|
||||
BusinessShares2Input.Foreground = Brushes.DarkGreen;
|
||||
BusinessShares2Input.ToolTip = "Geschäftsanteile (weiß)";
|
||||
BusinessShares3Input.Background = Brushes.WhiteSmoke;
|
||||
BusinessShares3Input.ToolTip = "Geschäftsanteile (ruhend)";
|
||||
} else {
|
||||
BusinessSharesLabel.Content = "(normal/ruhend)";
|
||||
BusinessShares1Input.ToolTip = "Geschäftsanteile (normal)";
|
||||
BusinessShares2Input.Background = Brushes.WhiteSmoke;
|
||||
BusinessShares2Input.ToolTip = "Geschäftsanteile (ruhend)";
|
||||
BusinessShares3Input.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
UpdateContactInfoVisibility();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user