Ejemplo n.º 1
0
        /// <summary>
        /// Loads all factories and so on found at the specified path.
        /// </summary>
        /// <param name="path">The path.</param>
        private void LoadData(string path)
        {
            // Disable validation and tree updates while loading, because
            // there will be a lot of changes (and redundant updates otherwise).
            ++_isValidationEnabled;
            tvData.BeginUpdate();

            // Load stuff.
            FactoryManager.Load(path);
            ItemPoolManager.Load(path);
            AttributePoolManager.Load(path);

            // Reenable tree and validation.
            tvData.EndUpdate();
            --_isValidationEnabled;

            // Done loading, see if there are any problem with what we got.
            ScanForIssues();
        }