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