Ejemplo n.º 1
0
        protected virtual void OnDescribeTypeActionActivated(object sender, System.EventArgs e)
        {
            DescribeType dt = new DescribeType();

            int  c = dt.Run();
            Type t = null;

            if (c == (int)Gtk.ResponseType.Ok)
            {
                try
                {
                    t = System.Type.GetType(dt.TypeName);
                }
                catch
                {
                }
            }
            if (t == null)
            {
                MessageDialog d = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, false, "The type {0} was not found", dt.TypeName);
                d.Run();
                d.Destroy();
            }
            else
            {
                Describe(t);
            }

            dt.Destroy();
        }
Ejemplo n.º 2
0
		protected virtual void OnDescribeTypeActionActivated (object sender, System.EventArgs e)
		{
			DescribeType dt = new DescribeType ();
			
			int c = dt.Run ();
			Type t = null;
			
			if (c == (int) Gtk.ResponseType.Ok){
				try {
					t = System.Type.GetType (dt.TypeName);
				} catch {
				}
			}
			if (t == null){
				MessageDialog d = new MessageDialog (this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, false, "The type {0} was not found", dt.TypeName);
				d.Run ();
				d.Destroy ();
			} else
				Describe (t);
			
			dt.Destroy ();
		}