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(); }
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 (); }