Beispiel #1
0
        public BasicSettings()
        {
            InitializeComponent();

            WindowHelper.CheckAndApplyTheme(this);

            //btnAddProduct.Foreground = new SolidColorBrush(Colors.DarkSlateBlue); //Colors.CornflowerBlue
            //btnRegenerateKeys.Foreground = new SolidColorBrush(Colors.DarkSlateBlue);

            UIContext.InitializeForNewLicense();
            License = UIContext.License;

            IEventAggregator eventAggregator = ObjectLocator.GetInstance <IEventAggregator>();

            eventAggregator.AddListener <ProductsUpdatedEvent>(x => cboProduct.ItemsSource = UIContext.GetProducts());
            eventAggregator.SendMessage <LicenseInitializedEvent>();
        }