コード例 #1
0
 public static void LoadElements(string elementLocation)
 {
     if (!File.Exists(elementLocation))
     {
         UpdateElements(elementLocation);
     }
     PeriodicTableLoader.Load(elementLocation);
 }
コード例 #2
0
        public static void LoadElements()
        {
            // has the periodic table already been loaded?
            if (PeriodicTable.GetElement(1) != null)
            {
                return;
            }

            // periodic table has not been loaded yet - load it
            PeriodicTableLoader.Load();
        }