Example #1
0
        private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            string       key  = e.Node.FullPath.Replace('\\', '.');
            SettingsPage page = FindPage(key);

            _settings.Gui.InitialSettingsPage = key;

            if (page != null && page != _currentPage)
            {
                panel1.Controls.Clear();
                panel1.Controls.Add(page);
                page.Dock    = DockStyle.Fill;
                _currentPage = page;
                return;
            }
        }
        private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            string key = e.Node.FullPath.Replace('\\', '.');
            SettingsPage page = FindPage(key);
            _settings.Gui.InitialSettingsPage = key;

            if (page != null && page != _currentPage)
            {
                panel1.Controls.Clear();
                panel1.Controls.Add(page);
                page.Dock = DockStyle.Fill;
                _currentPage = page;
                return;
            }
        }