Exemplo n.º 1
0
        private void UpdateLookAndFeel()
        {
            // Update the old treeview theme to the new theme
            WindowsApi.SetWindowTheme(this.OptionsTreeView.Handle, "Explorer", null);

            this.currentPanel = this.panelStartupShutdown;
            this.OptionsTreeView.SelectedNode = this.OptionsTreeView.Nodes[0];
            this.OptionsTreeView.Select();
            this.OptionTitelLabel.BackColor = Color.FromArgb(17, 0, 252);

            this.DrawBottomLine();
        }
Exemplo n.º 2
0
 private void SelectNewPanel()
 {
     string panelName = this.OptionsTreeView.SelectedNode.Tag.ToString();
     Debug.WriteLine("Selected panel: " + panelName);
     List<IOptionPanel> uc = this.FindOptionPanels();
     this.currentPanel = uc.FirstOrDefault(panel => ((panel is OptionPanel) ? ((OptionPanel)panel).Name : panel.Name.StartsWith("panel") ? panel.Name.Substring(5,panel.Name.Length -5) : panel.Name) == panelName);
 }