예제 #1
0
        private void StatementButton_Click(object sender, EventArgs e)
        {
            MoveIndicator((Control)sender);
            Statements statements = new Statements();

            if (CultureInfo.CurrentCulture.Equals("fr-FR"))
            {
                this.Controls.Clear();
                statements.Dock = DockStyle.Fill;
                this.Controls.Add(statements);

                if (MainHeader.ForeColor == Color.Orange)
                {
                    statements.ChangeTheme();
                    statements.ChangeLanguage("fr-FR");
                }

                statements.ChangeLanguage("fr-FR");
            }

            else if (CultureInfo.CurrentCulture.Equals("es-ES"))
            {
                this.Controls.Clear();
                statements.Dock = DockStyle.Fill;
                this.Controls.Add(statements);

                if (MainHeader.ForeColor == Color.Orange)
                {
                    statements.ChangeTheme();
                    statements.ChangeLanguage("es-ES");
                }

                statements.ChangeLanguage("es-ES");
            }

            else
            {
                this.Controls.Clear();
                statements.Dock = DockStyle.Fill;
                this.Controls.Add(statements);

                if (MainHeader.ForeColor == Color.Orange)
                {
                    statements.ChangeTheme();
                    statements.ChangeLanguage("en");
                }

                statements.ChangeLanguage("en");
            }
        }
예제 #2
0
        private void StatementButton_Click(object sender, EventArgs e)
        {
            MoveIndicator((Control)sender);
            Statements statements = new Statements();

            this.Controls.Clear();
            statements.Dock = DockStyle.Fill;
            this.Controls.Add(statements);

            if (MainHeader.ForeColor == Color.Orange)
            {
                statements.ChangeTheme();
            }
        }