Example #1
0
        public LicenseSettings()
        {
            IEventAggregator eventAggregator = ObjectLocator.GetInstance <IEventAggregator>();

            eventAggregator.AddListener <LicenseInitializedEvent>(x => SetData());
            eventAggregator.AddListener <ServicesUpdatedEvent>(x => cboService.ItemsSource = UIContext.GetAllServices());

            InitializeComponent();

            WindowHelper.CheckAndApplyTheme(this);

            this.Loaded += new RoutedEventHandler(LicenseSettings_GotFocus);

            SetData();
        }