public MainPage()
        {
            if (StiOptions.Silverlight.Themes.UseDefaultTheme && StiOptions.Silverlight.Themes.CurrentTheme == null)
            {
                StiOptions.Silverlight.Themes.CurrentTheme = (StiSilverlightThemes)StiSettings.Get("StimulsoftApplication", "Theme", StiOptions.Silverlight.Themes.DefaultTheme);
            }
            StiThemesHelper.LoadTheme();

            InitializeComponent();
        }
        public MainPage()
        {
            if (StiOptions.Silverlight.Themes.CurrentTheme == null)
            {
                StiOptions.Silverlight.Themes.CurrentTheme = (StiSilverlightThemes)StiSettings.Get("StimulsoftApplication", "Theme", StiSilverlightThemes.Office2010Silver);
            }
            StiThemesHelper.LoadTheme();

            InitializeComponent();
            stiReport1 = new Stimulsoft.Report.StiReport();
        }
예제 #3
0
        protected async override void OnLaunched(LaunchActivatedEventArgs args)
        {
            // Отключаем интеграцию в SettingsPane контролами
            StiSettingsInternalHelper.IntegrateToTheSettingsPane = false;
            // Сами инициализируем интеграцию в SettingsPane
            StiSettingsPaneHelper.Initialize();

            if (StiSettings.GetBool("NavigatorWinRT", "IsFirstLaunch", true))
            {
                StiSettings.Set("NavigatorWinRT", "IsFirstLaunch", false);

                var key = System.Globalization.CultureInfo.CurrentCulture.Name;

                #region Cultures
                if (key.StartsWith("de"))
                {
                    key = "de";
                }
                else if (key.StartsWith("ru"))
                {
                    key = "ru";
                }
                else if (key == "zh-Hans")
                {
                    key = "zh-CHS";
                }
                else if (key == "zh-Hant")
                {
                    key = "zh-CHT";
                }
                else
                {
                    key = "en";
                }
                #endregion

                StiSettings.Set("Localization", "Current", key);
            }

            StiThemesHelper.LoadTheme();
            await StiLocalizationHelper.LoadDefaulLocalizationAsync();

            Window.Current.Content = new StiSplashControl(args.Arguments, null);
            Window.Current.Activate();
        }