Exemple #1
0
        private void OptionDialog_Load(object sender, EventArgs e)
        {
            TreeView_OptionTree.Nodes.Add(MenuItem[(int)MenuEntry.GeneralOptions], MenuText[(int)MenuEntry.GeneralOptions]);
            TreeView_OptionTree.Nodes.Add(MenuItem[(int)MenuEntry.ServerOption],MenuText[(int)MenuEntry.ServerOption]);
            TreeView_OptionTree.Nodes.Add(MenuItem[(int)MenuEntry.TemplateOption], MenuText[(int)MenuEntry.TemplateOption]);

            genralPanel = new GeneralOptions();
            serverPanel = new ServerConfig();
            templatePanel = new TemplateOptions();
            

            OptionPanel.Controls.Add(genralPanel);
            OptionPanel.Controls.Add(serverPanel);
            OptionPanel.Controls.Add(templatePanel);

            serverPanel.Hide();
            templatePanel.Hide();

        }