public static AcRootDirectory Initialize(string directory = null) { if (Instance != null) { throw new Exception("Already initialized"); } return(Instance = new AcRootDirectory(directory)); }
public Superintendent() { if (AcRootDirectory.Instance == null) { AcRootDirectory.Initialize(); if (AcRootDirectory.Instance == null) { return; } } AcRootDirectory.Instance.Changed += AcRootDirectory_Changed; }
public static AcRootDirectory Initialize() { if (Instance != null) throw new Exception("Already initialized"); return Instance = new AcRootDirectory(); }