private void ConfigurationLoaded(object sender, ConfigurationLoadedEventArgs args)
        {
            if (args.Configuration == null)
            {
                return;
            }

            SetConfigurationInfo(args.Configuration);

            ConfigurationFounded?.Invoke(sender, args);
        }
Example #2
0
        /// <summary>
        /// The configuration has been loaded
        /// </summary>
        void Configuration_LoadComplete(object sender, ConfigurationLoadedEventArgs e)
        {
            this.m_configuration = e.Configuration;

            foreach (var splogo in this.m_configuration.Sponsors)
            {
                SponsorLogos.Children.Add(new Image()
                {
                    Source    = new BitmapImage(new Uri(splogo)),
                    Stretch   = Stretch.UniformToFill,
                    MinHeight = 64
                });
            }

            this.visContent.Configuration = e.Configuration;
        }
Example #3
0
 private async Task ConfigurationFounded(object sender, ConfigurationLoadedEventArgs args)
 {
     mainMenuBar.EnableProductsButton(true);
     viewerContainer.SetConfiguration(args.Configuration);
     await viewerContainer.LoadProductsList();
 }