public ModuleManager(IApp app) { this.app = app; Text = "Modules"; Height = 600; CloseButtonVisible = false; CloseButton = false; var split = new SplitContainer { Orientation = Orientation.Horizontal, Dock = DockStyle.Fill }; Controls.Add(split); treeView = new TreeViewX(app) { Dock = DockStyle.Fill, BorderStyle = BorderStyle.None }; treeView.AfterSelect += OnNodeSelected; treeView.KeyDown += OnTreeViewKeyDown; split.Panel1.Controls.Add(treeView); infos = new InfoPanel { Dock = DockStyle.Fill }; split.Panel2.Controls.Add(infos); split.SplitterDistance = 400; Icon = null; history.Navigated += (sender, e) => { navCount++; try { if (history.Current.Model.Node != null && history.Current.Model.Node.TreeView != null) { treeView.SelectedNode = history.Current.Model.Node; } else { NavigateModel(history.Current.Model); } } finally { navCount--; } }; resolver = new ModuleResolver(this); }
public ModuleManager(IApp app) { this.app = app; Text = "Modules"; Height = 600; CloseButtonVisible = false; CloseButton = false; var split = new SplitContainer { Orientation = Orientation.Horizontal, Dock = DockStyle.Fill }; Controls.Add(split); treeView = new TreeViewX(app) { Dock = DockStyle.Fill, BorderStyle = BorderStyle.None }; treeView.AfterSelect += OnNodeSelected; treeView.KeyDown += OnTreeViewKeyDown; split.Panel1.Controls.Add(treeView); infos = new InfoPanel { Dock = DockStyle.Fill }; split.Panel2.Controls.Add(infos); split.SplitterDistance = 400; Icon = null; history.Navigated += (sender, e) => { navCount++; try { if (history.Current.Model.Node != null && history.Current.Model.Node.TreeView != null) treeView.SelectedNode = history.Current.Model.Node; else NavigateModel(history.Current.Model); } finally { navCount--; } }; resolver = new ModuleResolver(this); }