コード例 #1
0
ファイル: StatList.cs プロジェクト: alfredodev/mono-tools
		public StatList (ProfilerEventHandler data, DisplayOptions options) : base ()
		{
			store = new StatStore (data, options);
			Model = new TreeModelAdapter (store);
			Selection.SelectPath (new TreePath ("0"));
			AppendColumn ("Percent", new CellRendererText (), "text", 1);
			TreeViewColumn col = new TreeViewColumn ("Method", new CellRendererText (), "text", 0);
			AppendColumn (col);
			ExpanderColumn = col;
			options.Changed += delegate { Model = new TreeModelAdapter (new StatStore (data, options)); };
		}
コード例 #2
0
        public StatList(ProfilerEventHandler data, DisplayOptions options) : base()
        {
            store = new StatStore(data, options);
            Model = new TreeModelAdapter(store);
            Selection.SelectPath(new TreePath("0"));
            AppendColumn("Percent", new CellRendererText(), "text", 1);
            TreeViewColumn col = new TreeViewColumn("Method", new CellRendererText(), "text", 0);

            AppendColumn(col);
            ExpanderColumn   = col;
            options.Changed += delegate { Model = new TreeModelAdapter(new StatStore(data, options)); };
        }