示例#1
0
        BrowseReflection(Object obj)
        {
            if (obj == null)
            {
                MessageBox.Show("Object == null");
                return;
            }

            RevitLookup.Snoop.Forms.GenericPropGrid pgForm = new RevitLookup.Snoop.Forms.GenericPropGrid(obj);
            pgForm.Text = string.Format("Object Data (System.Type = {0})", obj.GetType().FullName);
            pgForm.ShowDialog();
        }
示例#2
0
        /// <summary>
        /// Given an Object, allow the user to browse its properties based on Reflection only.
        /// </summary>
        /// <param name="obj">Object to browse</param>
        public static void BrowseReflection(Object obj)
        {
            if (obj == null)
             {
            MessageBox.Show("Object == null");
            return;
             }

             RevitLookup.Snoop.Forms.GenericPropGrid pgForm = new RevitLookup.Snoop.Forms.GenericPropGrid(obj);
             pgForm.Text = string.Format("Object Data (System.Type = {0})", obj.GetType().FullName);
             pgForm.ShowDialog();
        }