public static void CreateDialog() { if (_instance == null) { _instance = new MiniDefectLogDialog(); _instance.ShowDialog(); } }