Ejemplo n.º 1
0
        protected virtual void OnButtonAddCounterClicked(object sender, System.EventArgs e)
        {
            CounterSelectorDialog dlg = new CounterSelectorDialog();

            dlg.TransientFor = (Gtk.Window) this.Toplevel;
            if (dlg.Run() == (int)ResponseType.Ok)
            {
                foreach (Counter c in dlg.Selection)
                {
                    view.Add(c);
                }
                FillSelectedSeries();
                UpdateCharts();
            }
            dlg.Destroy();
        }
Ejemplo n.º 2
0
        public void ShowAllTimers()
        {
            hboxChartBar.Visible = hboxSeriesBar.Visible = false;

            view = new ChartView();
            foreach (Counter c in App.Service.GetCounters())
            {
                if (c is TimerCounter)
                {
                    view.Add(c);
                }
            }

            FillSelectedSeries();
            toggleListView.Active = true;
        }
Ejemplo n.º 3
0
		public void ShowAllTimers ()
		{
			hboxChartBar.Visible = hboxSeriesBar.Visible = false;
			
			view = new ChartView ();
			foreach (Counter c in App.Service.GetCounters ()) {
				if (c is TimerCounter)
					view.Add (c);
			}
			
			FillSelectedSeries ();
			toggleListView.Active = true;
		}