Exemplo n.º 1
0
        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);
            };
        }
Exemplo n.º 2
0
        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);
            };
        }
Exemplo n.º 3
0
        protected virtual void OnNewTabActionActivated(object sender, System.EventArgs e)
        {
            TabWidget     tab  = new TabWidget(Mono.Unix.Catalog.GetString("(No Title)"), buses_Nb, buses_Nb.NPages);
            BusPageWidget page = new BusPageWidget(tab);

            page.ShowAll();
            page.Explorator = DBusExplorator.SessionExplorator;
            FeedBusComboBox(page.Explorator.AvailableBusNames, page);
            buses_Nb.AppendPage(page, tab);
            // Switch to the newly append page which trigger the normal events
            buses_Nb.CurrentPage = buses_Nb.NPages - 1;
        }
Exemplo n.º 4
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);
            }
        }
Exemplo n.º 5
0
 protected virtual void OnNewTabActionActivated(object sender, System.EventArgs e)
 {
     TabWidget tab = new TabWidget(Mono.Unix.Catalog.GetString("(No Title)"), buses_Nb, buses_Nb.NPages);
     BusPageWidget page = new BusPageWidget(tab);
     page.ShowAll();
     page.Explorator = DBusExplorator.SessionExplorator;
     FeedBusComboBox(page.Explorator.AvailableBusNames, page);
     buses_Nb.AppendPage(page, tab);
     // Switch to the newly append page which trigger the normal events
     buses_Nb.CurrentPage = buses_Nb.NPages - 1;
 }