public static void Log(object obj) { if (obj is Type) { Log((Type)obj); } else { Log log = new Log(obj); if (ConsoleGUI.GUI == null) { ConsoleGUI.ShowWindow(); } ConsoleGUI.GUI.AddLog(log); } }