Beispiel #1
0
 public TopMenuViewModel(IDomainContext domainContext)
 {
     databaseIsVerified = false;
     BasketCaption      = "0.00" + CurrencySuffix;
     DomainContext      = domainContext;
     menuItemsStyle     = new MenuItemsStyle(DomainContext,
                                             ColorService.CreateBrush(0x2B, 0x3E, 0x80),
                                             ColorService.CreateBrush(0x5B, 0x6E, 0xA0),
                                             ColorService.CreateBrush(0x8B, 0x9E, 0xF0),
                                             ColorService.CreateBrush(0xDB, 0xEE, 0xFF));
     SubscribeMessenger();
     RefreshBasketCapture();
 }
Beispiel #2
0
        private void SetDefaultBackgroundColors()
        {
            if (NotSelectedAndMouseIsNotOverBackgroundColor == null)
            {
                NotSelectedAndMouseIsNotOverBackgroundColor = ColorService.CreateBrush(0x80, 0x80, 0x80);
            }

            if (NotSelectedAndMouseIsOverBackgroundColor == null)
            {
                NotSelectedAndMouseIsOverBackgroundColor = ColorService.CreateBrush(0x64, 0x64, 0x64);
            }

            if (SelectedAndMouseIsNotOverBackgroundColor == null)
            {
                SelectedAndMouseIsNotOverBackgroundColor = ColorService.CreateBrush(0x47, 0x47, 0xB8);
            }

            if (SelectedAndMouseIsOverBackgroundColor == null)
            {
                SelectedAndMouseIsOverBackgroundColor = ColorService.CreateBrush(0x67, 0x67, 0xD8);
            }
        }