Ejemplo n.º 1
0
        public SettingsDialog()
        {
            RShare.MainForm.SetUILanguage();
            InitializeComponent();

            InitNavigationGrid();

            m_ConnectionCtrl = new Settings_ConnectionCtrl(this.btnApply);
            m_DirectoryCtrl = new Settings_DirectoryControl(this.btnApply);
            m_InterfaceCtrl = new Settings_InterfaceCtrl(this.btnApply);
            m_MiscCtrl = new Settings_MiscControl(this.btnApply);
            // ********* 2.) OPEN YOUR NEW CONTROL WINDOW HERE (SEE EXAMPLES ABOVE) *********//

            /*
            if (toolStripContainer.ContentPanel.Controls.Count == 0 || (toolStripContainer.ContentPanel.Controls.Count > 0 && !(toolStripContainer.ContentPanel.Controls[0] is Settings_ConnectionCtrl)))
            {
                toolStripContainer.ContentPanel.Controls.Clear();
                toolStripContainer.ContentPanel.Controls.Add(m_ConnectionCtrl);
                m_ConnectionCtrl.Focus();
            }
             */
        }
Ejemplo n.º 2
0
        } //private class mySettingMenuItem


        public SettingsDialog()
        {
            RShare.MainForm.SetUILanguage();
            InitializeComponent();

            InitNavigationGrid();

            m_ConnectionCtrl = new Settings_ConnectionCtrl(this.btnApply);
            m_DirectoryCtrl  = new Settings_DirectoryControl(this.btnApply);
            m_InterfaceCtrl  = new Settings_InterfaceCtrl(this.btnApply);
            m_MiscCtrl       = new Settings_MiscControl(this.btnApply);
            // ********* 2.) OPEN YOUR NEW CONTROL WINDOW HERE (SEE EXAMPLES ABOVE) *********//



            /*
             * if (toolStripContainer.ContentPanel.Controls.Count == 0 || (toolStripContainer.ContentPanel.Controls.Count > 0 && !(toolStripContainer.ContentPanel.Controls[0] is Settings_ConnectionCtrl)))
             * {
             *  toolStripContainer.ContentPanel.Controls.Clear();
             *  toolStripContainer.ContentPanel.Controls.Add(m_ConnectionCtrl);
             *  m_ConnectionCtrl.Focus();
             * }
             */
        }