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(); }
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; }
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; }