示例#1
0
        public override void Display()
        {
            bank = new ChemicalDatabank();

            boilingPoint     = bank.GetCriticalPoint(chemical, "B");
            meltingPoint     = bank.GetCriticalPoint(chemical, "M");
            molecularWeight  = bank.GetMolecularWeight(chemical);
            molecularFormula = bank.GetMolecularString(chemical);

            base.Display();

            Console.WriteLine(" Formula: {0}", molecularFormula);
            Console.WriteLine(" Weight : {0}", molecularWeight);
            Console.WriteLine(" Melting Pt: {0}", meltingPoint);
            Console.WriteLine(" Boiling Pt: {0}", boilingPoint);
        }