/// <summary> /// Shows the singleton instance of ObjectGraphWindow and also returns it. /// </summary> /// <returns></returns> public static ObjectGraphWindow EnsureShown() { if (ObjectGraphWindow.Instance == null) { ObjectGraphWindow.Instance = new ObjectGraphWindow(); ObjectGraphWindow.Instance.Topmost = true; } ObjectGraphWindow.Instance.RegisterDebuggerEvents(); ObjectGraphWindow.Instance.Show(); return ObjectGraphWindow.Instance; }
/// <summary> /// Shows the singleton instance of ObjectGraphWindow and also returns it. /// </summary> /// <returns></returns> public static ObjectGraphWindow EnsureShown() { if (ObjectGraphWindow.Instance == null) { ObjectGraphWindow.Instance = new ObjectGraphWindow(); ObjectGraphWindow.Instance.Topmost = true; } ObjectGraphWindow.Instance.RegisterDebuggerEvents(); ObjectGraphWindow.Instance.Show(); return(ObjectGraphWindow.Instance); }