/// <summary> /// Default ctor /// </summary> public EditRailwayControl() { InitializeComponent(); activeRoot = new TreeNode("Active"); activeLocsRoot = new TreeNode("Locomotives"); locGroupsRoot = new TreeNode("Locomotive groups"); activeModulesRoot = new TreeNode("Modules"); moduleConnectionsRoot = new TreeNode("Module connections"); activeCommandStationsRoot = new TreeNode("Command stations"); activeRoot.Nodes.Add(activeLocsRoot); activeRoot.Nodes.Add(locGroupsRoot); activeRoot.Nodes.Add(activeModulesRoot); activeRoot.Nodes.Add(moduleConnectionsRoot); activeRoot.Nodes.Add(activeCommandStationsRoot); inactiveRoot = new TreeNode("Archived"); inactiveLocsRoot = new TreeNode("Locomotives"); inactiveModulesRoot = new TreeNode("Modules"); inactiveCommandStationsRoot = new TreeNode("Command stations"); inactiveRoot.Nodes.Add(inactiveLocsRoot); inactiveRoot.Nodes.Add(inactiveModulesRoot); inactiveRoot.Nodes.Add(inactiveCommandStationsRoot); tvItems.Nodes.Add(activeRoot); tvItems.Nodes.Add(inactiveRoot); splitContainer.Panel1MinSize = 200; splitContainer.Panel2MinSize = 300; toolStripMerge = new ToolStripMerge(toolStrip1); toolStrip1.Hide(); }
/// <summary> /// Default ctor /// </summary> public RunRailwayControl() { InitializeComponent(); tbShowDescriptions.Checked = viewControl.ShowDescriptions; toolStripMerge = new ToolStripMerge(toolStrip1); toolStrip1.Hide(); viewControl.SelectLoc += (s, x) => { locsControl.SelectLoc(x.Value); }; }