public StatView (ProfilerEventHandler data, DisplayOptions options) { list = new StatList (data, options); ScrolledWindow sw = new ScrolledWindow (); sw.Add (list); sw.ShowAll (); detail = new StatDetail (data, options); detail.CurrentItem = list.SelectedItem; list.Selection.Changed += delegate { detail.CurrentItem = list.SelectedItem; }; Add1 (sw); Add2 (detail); Position = 200; }
public StatView(ProfilerEventHandler data, DisplayOptions options) { list = new StatList(data, options); ScrolledWindow sw = new ScrolledWindow(); sw.Add(list); sw.ShowAll(); detail = new StatDetail(data, options); detail.CurrentItem = list.SelectedItem; list.Selection.Changed += delegate { detail.CurrentItem = list.SelectedItem; }; Add1(sw); Add2(detail); Position = 200; }