예제 #1
0
        private void InitUI()
        {
            toolbarButtonBackgroundColor = Color.Transparent;
            this.u_panelGeneral          = new PanelGeneral(this.m_generalDictionary, this.m_searchDictionary, this.m_genericInputMethods, this.u_applyButton);
            this.AddPreferencePane(u_panelGeneral, "General");
            PanelPhonetic panelPhonetic = new PanelPhonetic(this.m_traditionalPhoneticDictionary, this.m_smartPhoneticDictionary, this.u_applyButton);

            this.AddPreferencePane(panelPhonetic, "Phonetic");
            PanelCangjie panelCangjie = new PanelCangjie(this.m_cangjieDictionary, this.u_applyButton);

            this.AddPreferencePane(panelCangjie, "Cangjie");
            PanelSimplex panelSimplex = new PanelSimplex(this.m_simplexDictionary, this.u_applyButton);

            this.AddPreferencePane(panelSimplex, "Simplex");
            if (this.m_hasGenericInputMethods == false)
            {
                this.u_toolbarGeneric.Visible = false;
                this.u_toolbar.Controls.Remove(this.u_toolbarGeneric);
                this.u_settingsPanel.Left = 43;
                this.u_toolbar.Width      = this.u_toolbar.Width - 56;
                this.Width = this.Width - 56;
            }
            else
            {
                this.u_panelGeneric = new PanelGeneric(m_venderIdentifer, m_genericInputMethods, u_applyButton);
                this.AddPreferencePane(u_panelGeneric, "Generic");
            }
            PanelMisc panelMisc = new PanelMisc(m_generalDictionary, u_applyButton);

            this.AddPreferencePane(panelMisc, "Misc");
            PanelPhrases panelPhrases = new PanelPhrases();

            this.AddPreferencePane(panelPhrases, "Phrases");
            PanelUpdate panelUpdate = new PanelUpdate(m_generalDictionary, u_applyButton);

            this.AddPreferencePane(panelUpdate, "Update");

            BIAboutPanel.c_icon = global::TakaoPreference.Properties.Resources.yahoo;
            this.u_panelAbout   = new BIAboutPanel(this);
            this.AddPreferencePane(u_panelAbout, "About");
            this.u_toolbarGeneral.Checked   = true;
            this.u_toolbarGeneral.BackColor = toolbarButtonBackgroundColor;
            this.u_applyButton.Enabled      = false;

            System.Windows.Forms.Control.ControlCollection c = this.u_settingsPanel.Controls;
            int i = 0;

            foreach (Control item in c)
            {
                if (i == 0)
                {
                    item.Visible = true;
                }
                else
                {
                    item.Visible = false;
                }
                i++;
            }
        }
예제 #2
0
        private void InitUI()
        {
            toolbarButtonBackgroundColor = Color.Transparent;
            this.u_panelGeneral = new PanelGeneral(this.m_generalDictionary, this.m_searchDictionary, this.m_genericInputMethods, this.u_applyButton);
            this.AddPreferencePane(u_panelGeneral, "General");
            PanelPhonetic panelPhonetic = new PanelPhonetic(this.m_traditionalPhoneticDictionary, this.m_smartPhoneticDictionary, this.u_applyButton);
            this.AddPreferencePane(panelPhonetic, "Phonetic");
            PanelCangjie panelCangjie = new PanelCangjie(this.m_cangjieDictionary, this.u_applyButton);
            this.AddPreferencePane(panelCangjie, "Cangjie");
            PanelSimplex panelSimplex = new PanelSimplex(this.m_simplexDictionary, this.u_applyButton);
            this.AddPreferencePane(panelSimplex, "Simplex");
            if (this.m_hasGenericInputMethods == false)
            {
                this.u_toolbarGeneric.Visible = false;
                this.u_toolbar.Controls.Remove(this.u_toolbarGeneric);
                this.u_settingsPanel.Left = 43;
                this.u_toolbar.Width = this.u_toolbar.Width - 56;
                this.Width = this.Width - 56;
            }
            else
            {
                this.u_panelGeneric = new PanelGeneric(m_venderIdentifer, m_genericInputMethods, u_applyButton);
                this.AddPreferencePane(u_panelGeneric, "Generic");
            }
            PanelMisc panelMisc = new PanelMisc(m_generalDictionary, u_applyButton);
            this.AddPreferencePane(panelMisc, "Misc");
            PanelPhrases panelPhrases = new PanelPhrases();
            this.AddPreferencePane(panelPhrases, "Phrases");
            PanelUpdate panelUpdate = new PanelUpdate(m_generalDictionary, u_applyButton);
            this.AddPreferencePane(panelUpdate, "Update");

            BIAboutPanel.c_icon = global::TakaoPreference.Properties.Resources.yahoo;
            this.u_panelAbout = new BIAboutPanel(this);
            this.AddPreferencePane(u_panelAbout, "About");
            this.u_toolbarGeneral.Checked = true;
            this.u_toolbarGeneral.BackColor = toolbarButtonBackgroundColor;
            this.u_applyButton.Enabled = false;

            System.Windows.Forms.Control.ControlCollection c = this.u_settingsPanel.Controls;
            int i = 0;
            foreach (Control item in c)
            {
                if (i == 0)
                    item.Visible = true;
                else
                    item.Visible = false;
                i++;
            }
        }