public BusPageWidget(TabWidget tab) { this.Build(); this.busContent = new BusContentView(this); this.tab = tab; this.informationViewPlaceholder.Add(infoView); this.tvPlaceholder.Add(busContent); busContent.ElementUpdated += delegate(object sender, ElementUpdatedEventArgs e) { infoView.FillBottom(e.Element); }; }
void UpdateView(string busName) { BusContentView view = this.currentPageWidget.BusContent; DBusExplorator explorator = currentPageWidget.Explorator; TabWidget tab = this.currentPageWidget.Tab; tab.TabName = busName; view.Reinitialize(); try { IEnumerable <PathContainer> elements = explorator.GetElementsFromBus(busName); foreach (PathContainer path in elements) { view.AddPath(path); } } catch (Exception e) { LoggingEventHandler(LogType.Error, "Error while retrieving bus elements", e, null); } }