コード例 #1
0
        void HandleListViewRowActivated(object o, RowActivatedArgs args)
        {
            TreeIter sel;

            if (!listView.Selection.GetSelected(out sel))
            {
                return;
            }
            ListViewValueInfo vinfo = (ListViewValueInfo)listViewStore.GetValue(sel, 0);

            if (vinfo.Value.HasTimerTraces)
            {
                TimeLineViewWindow win = new TimeLineViewWindow(vinfo.Serie.Counter, vinfo.Value);
                win.Show();
            }
        }
コード例 #2
0
        void HandleTreeViewRowActivated(object o, RowActivatedArgs args)
        {
            TreeIter it;

            store.GetIter(out it, args.Path);
            object oval = store.GetValue(it, ColValue);

            if (oval == null)
            {
                return;
            }
            CounterValue val = (CounterValue)oval;

            store.IterParent(out it, it);
            Counter            c   = (Counter)store.GetValue(it, ColCounter);
            TimeLineViewWindow win = new TimeLineViewWindow(c, val);

            win.Show();
        }
コード例 #3
0
		void HandleListViewRowActivated (object o, RowActivatedArgs args)
		{
			TreeIter sel;
			if (!listView.Selection.GetSelected (out sel))
				return;
			ListViewValueInfo vinfo = (ListViewValueInfo) listViewStore.GetValue (sel, 0);
			if (vinfo.Value.HasTimerTraces) {
				TimeLineViewWindow win = new TimeLineViewWindow (vinfo.Serie.Counter, vinfo.Value);
				win.Show ();
			}
		}
コード例 #4
0
		void HandleTreeViewRowActivated (object o, RowActivatedArgs args)
		{
			TreeIter it;
			store.GetIter (out it, args.Path);
			object oval = store.GetValue (it, ColValue);
			if (oval == null)
				return;
			CounterValue val = (CounterValue) oval;
			store.IterParent (out it, it);
			Counter c = (Counter) store.GetValue (it, ColCounter);
			TimeLineViewWindow win = new TimeLineViewWindow (c, val);
			win.Show ();
		}