Ejemplo n.º 1
0
		public FormMain() {
            CultureInfo c = CultureInfo.CurrentCulture;
            CultureInfo ui = CultureInfo.CurrentUICulture;
            if (c.Name != "en-US" && c.Name != "ja-JP")
            {
                c = new CultureInfo("en-US");
            }
            if (ui.Name != "en-US" && ui.Name != "ja-JP")
            {
                ui = new CultureInfo("en-US");
            }
            Thread.CurrentThread.CurrentCulture = c;
            Thread.CurrentThread.CurrentUICulture = ui;
            Translator = new DynamicTranslator();
            Instance = this;
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            InitializeComponent();
            ThemeBase thm;
            switch (Configuration.Config.UI.Theme)
            {
                case Theme.Light:
                    thm = new VS2012LightTheme();
                    break;
                case Theme.Dark:
                    thm = new VS2012DarkTheme();
                    break;
                default:
                    thm = new VS2012LightTheme();
                    break;
            }
            thm.Apply(MainDockPanel);
        }
Ejemplo n.º 2
0
		public FormMain() {
            CultureInfo c = CultureInfo.CurrentCulture;
            CultureInfo ui = CultureInfo.CurrentUICulture;
            if (c.Name != "en-US" && c.Name != "ja-JP")
            {
                c = new CultureInfo("en-US");
            }
            if (ui.Name != "en-US" && ui.Name != "ja-JP")
            {
                ui = new CultureInfo("en-US");
            }
            Thread.CurrentThread.CurrentCulture = c;
            Thread.CurrentThread.CurrentUICulture = ui;

            Translator = new DynamicTranslator();
            Instance = this;
            InitializeComponent();
		}