示例#1
0
		private void DisplayObjectProperties()
		{
			try
			{
				OMETrace.WriteFunctionStart();

				if (m_selectedObject != null)
				{
					ArrayList objectProperties = new ArrayList();
					ObjectPropertiesTable objTable = dbInteraction.GetObjectProperties(m_selectedObject);
					objectProperties.Add(objTable);

					dbGridViewProperties.Rows.Clear();
					dbGridViewProperties.Columns.Clear();
					dbGridViewProperties.Size = panelDatabaseProperties.Size;

					dbGridViewProperties.PopulateDisplayGrid(Constants.VIEW_OBJECTPROPERTIES, objectProperties);

					if (!panelObjectProperties.Controls.Contains(dbGridViewProperties))
						panelObjectProperties.Controls.Add(dbGridViewProperties);

					dbGridViewProperties.Refresh();
				}

				OMETrace.WriteFunctionEnd();
			}
			catch (Exception oEx)
			{
				LoggingHelper.ShowMessage(oEx);
			}
		}
示例#2
0
        public static ObjectPropertiesTable GetObjectProperties(object obj)
        {
            ObjectPropertiesTable objtable = new ObjectPropertiesTable(obj);

            return(objtable.GetObjectProperties());
        }