Пример #1
0
        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);
        }
Пример #2
0
		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);
		}