void ReinitBus(DBusExplorator exp) { this.currentPageWidget.Tab.TabName = DefaultTabName; this.currentPageWidget.Explorator = exp; exp.DBusError += OnDBusError; exp.AvailableNamesUpdated += OnAvailableNamesUpdated; currentPageWidget.BusContent.Reinitialize(); FeedBusComboBox(exp.AvailableBusNames); }
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); } }
void OnAvailableNamesUpdated(object sender, EventArgs e) { DBusExplorator exp = sender as DBusExplorator; if (exp == null) { return; } for (int i = 0; i < buses_Nb.NPages; i++) { BusPageWidget page = buses_Nb.GetNthPage(i) as BusPageWidget; if (page == null) { continue; } if (page.Explorator != exp) { continue; } FeedBusComboBox(exp.AvailableBusNames, page); } }
void ReinitBus(DBusExplorator exp) { this.currentPageWidget.Tab.TabName = DefaultTabName; this.currentPageWidget.Explorator = exp; exp.DBusError += OnDBusError; exp.AvailableNamesUpdated += OnAvailableNamesUpdated; currentPageWidget.BusContent.Reinitialize (); FeedBusComboBox(exp.AvailableBusNames); }