SetTopLevelObject() public method

Sets the top level object.
public SetTopLevelObject ( object obj, IInspectorList list ) : void
obj object
list IInspectorList
return void
 /// ------------------------------------------------------------------------------------
 public InspectorWnd ShowNewInspectorWndTwo(object obj, string text, string toolTipText, InspectorWnd wnd)
 {
     wnd.Text        = (!string.IsNullOrEmpty(text) ? text : GetNewInspectorWndTitle(obj));
     wnd.ToolTipText = (string.IsNullOrEmpty(toolTipText) ? wnd.Text : toolTipText);
     wnd.SetTopLevelObject(obj, GetNewInspectorList());
     wnd.InspectorGrid.ContextMenuStrip = m_cmnuGrid;
     wnd.InspectorGrid.Enter           += InspectorGrid_Enter;
     wnd.InspectorGrid.Leave           += InspectorGrid_Leave;
     wnd.FormClosed += HandleWindowClosed;
     wnd.Show(m_dockPanel);
     return(wnd);
 }
Beispiel #2
0
		/// ------------------------------------------------------------------------------------
		public InspectorWnd ShowNewInspectorWndTwo(object obj, string text, string toolTipText, InspectorWnd wnd)
		{
			wnd.Text = (!string.IsNullOrEmpty(text) ? text : GetNewInspectorWndTitle(obj));
			wnd.ToolTipText = (string.IsNullOrEmpty(toolTipText) ? wnd.Text : toolTipText);
			wnd.SetTopLevelObject(obj, GetNewInspectorList());
			wnd.InspectorGrid.ContextMenuStrip = m_cmnuGrid;
			wnd.InspectorGrid.Enter += InspectorGrid_Enter;
			wnd.InspectorGrid.Leave += InspectorGrid_Leave;
			wnd.FormClosed += HandleWindowClosed;
			wnd.Show(m_dockPanel);
			return wnd;
		}