示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
        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);
        }