Пример #1
0
 public static AcRootDirectory Initialize(string directory = null)
 {
     if (Instance != null)
     {
         throw new Exception("Already initialized");
     }
     return(Instance = new AcRootDirectory(directory));
 }
Пример #2
0
        public Superintendent()
        {
            if (AcRootDirectory.Instance == null)
            {
                AcRootDirectory.Initialize();
                if (AcRootDirectory.Instance == null)
                {
                    return;
                }
            }

            AcRootDirectory.Instance.Changed += AcRootDirectory_Changed;
        }
Пример #3
0
 public static AcRootDirectory Initialize() {
     if (Instance != null) throw new Exception("Already initialized");
     return Instance = new AcRootDirectory();
 }