public void Describe(Type t) { if (t == null) { throw new ArgumentNullException(); } if (FindPage(t)) { return; } TypeView tv = new TypeView(this); tv.KeyPressEvent += HandleKeyPressEvent; tv.ShowType(t); ScrolledWindow scrolled = new ScrolledWindow(); scrolled.Add(tv); scrolled.ShowAll(); AddPage(t, scrolled); }
public void Describe (Type t) { if (t == null) throw new ArgumentNullException (); if (FindPage (t)) return; TypeView tv = new TypeView (this); tv.KeyPressEvent += HandleKeyPressEvent; tv.ShowType (t); ScrolledWindow scrolled = new ScrolledWindow (); scrolled.Add (tv); scrolled.ShowAll (); AddPage (t, scrolled); }