예제 #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;
            }
        }
예제 #2
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;
            }
        }