Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // Force single instance application.
            WPFSingleInstance.Make(SecondInstance);

            this.MainWindow = new MainWindow(e.Args);
            this.MainWindow.Show();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // Force single instance application.
            WPFSingleInstance.Make(SecondInstance);

            this.MainWindow = new MainWindow(e.Args)
            {
                Width  = 1024,
                Height = 768,
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };
            this.MainWindow.Show();
        }
Esempio n. 3
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // Force single instance application.
            WPFSingleInstance.Make(SecondInstance);

            // Uncomment the following Application extension utility
            // to set a culture for your application. This will affect
            // Awesomium WPF WebControl UI and JavaScript 'navigation.language'.
            //this.SetCulture( CultureInfo.GetCultureInfo( "de-DE" ) );

            this.MainWindow = new MainWindow(e.Args)
            {
                Width  = 1200,
                Height = 690,
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            this.MainWindow.Show();
        }