示例#1
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)); };
		}
        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)); };
        }