Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            ViewDriver viewDriver = new ViewDriver();
            ViewDriverProvider.ViewDriver = viewDriver;

            FrameworkElement.LanguageProperty.OverrideMetadata(
                typeof(FrameworkElement),
                new FrameworkPropertyMetadata(
                XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

            //CollectionViewProvider.Provider = CollectionViewSource.GetDefaultView;

            CollectionViewProvider.Provider = _provider;

            Tva.Value = double.Parse(ConfigurationManager.AppSettings["Tva"], CultureInfo.CreateSpecificCulture("en-US"));

            Window loginWindow = new LoginView();
            loginWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            loginWindow.Show();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            ViewDriver viewDriver = new ViewDriver();

            ViewDriverProvider.ViewDriver = viewDriver;

            FrameworkElement.LanguageProperty.OverrideMetadata(
                typeof(FrameworkElement),
                new FrameworkPropertyMetadata(
                    XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

            //CollectionViewProvider.Provider = CollectionViewSource.GetDefaultView;

            CollectionViewProvider.Provider = _provider;

            Tva.Value = double.Parse(ConfigurationManager.AppSettings["Tva"], CultureInfo.CreateSpecificCulture("en-US"));

            Window loginWindow = new LoginView();

            loginWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            loginWindow.Show();
        }