public TelemetryControl() { panels = new PanelCollection(this); InitializeComponent(); currentPosition = new GeoPoint(47.5, 19); dockPanel.DocumentStyle = DocumentStyle.DockingMdi; messageProcessors = new List <IMessageProcessor>(); }
/// <summary> /// Recreates the list of panels according to the current control order. /// </summary> public PanelCollection GetPanels() { PanelCollection panels = new PanelCollection(); foreach (Control control in tableLayout.Controls) { if (control is ListBoxPanel) { panels.Add(control as ListBoxPanel); } } return panels; }