Beispiel #1
0
        private static void Main()
        {
            // Locales
            Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Director.Properties.Settings.Default.language);

            // Set toolkit type
            Config.SetAppType (ToolkitType.Cocoa);
              	Application.Initialize(Config.GetAppType());

            // Main window
            MainWindow _mainWindow = new MainWindow();
            _mainWindow.Closed += delegate { Application.Exit(); };

            // show
            _mainWindow.Show();
            Application.Run();
        }
Beispiel #2
0
        private static void Main()
        {
            // Set language
            Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Director.Properties.Settings.Default.language);

            // Setapp type
            Config.SetAppType(ToolkitType.Wpf);

            // Initialize
            Application.Initialize(Config.GetAppType());

            // Create main window and show
            MainWindow _mainWindow = new MainWindow();
            _mainWindow.Show();
            _mainWindow.Closed += delegate {
                Application.Exit();
            };

            // Run application
            Application.Run();
        }