Exemplo n.º 1
0
        public override void Display()
        {
            bank             = new ChemicalDatabank();
            boilingPoint     = bank.GetCriticalPoint(name, "B");
            meltingPoint     = bank.GetCriticalPoint(name, "M");
            molecularWeight  = bank.GetMolecularWeight(name);
            molecularFormula = bank.GetMolecularStructure(name);

            base.Display();
            Console.WriteLine(" Formula: {0}", molecularFormula);
            Console.WriteLine(" Weight : {0}", molecularWeight);
            Console.WriteLine(" Melting Pt: {0}", meltingPoint);
            Console.WriteLine(" Boiling Pt: {0}", boilingPoint);
        }
Exemplo n.º 2
0
        public override void Display()
        {
            // The Adaptee
            _bank = new ChemicalDatabank();

            _boilingPoint     = _bank.GetCriticalPoint(_chemical, "B");
            _meltingPoint     = _bank.GetCriticalPoint(_chemical, "M");
            _molecularWeight  = _bank.GetMolecularWeight(_chemical);
            _molecularFormula = _bank.GetMolecularStructure(_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);
        }
Exemplo n.º 3
0
        public override void Display()
        {
            // The Adaptee
            bank = new ChemicalDatabank();

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

            Console.WriteLine("\nCompound: {0} ------ ", chemical);
            Console.WriteLine(" Formula: {0}", molecularFormula);
            Console.WriteLine(" Weight : {0}", molecularWeight);
            Console.WriteLine(" Melting Pt: {0}", meltingPoint);
            Console.WriteLine(" Boiling Pt: {0}", boilingPoint);
        }
Exemplo n.º 4
0
        public override void Display()
        {
            // The Adaptee
            _bank = new ChemicalDatabank();

            _boilingPoint = _bank.GetCriticalPoint(_chemical, "B");
            _meltingPoint = _bank.GetCriticalPoint(_chemical, "M");
            _molecularWeight = _bank.GetMolecularWeight(_chemical);
            _molecularFormula = _bank.GetMolecularStructure(_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);
        }
Exemplo n.º 5
0
        public override void Display()
        {
            // The Adaptee
            _bank = new ChemicalDatabank();

            hheight = _bank.GetCriticalPoint(nname, "B");
            wweight = _bank.GetCriticalPoint(nname, "M");
            ggender = _bank.GetMolecularWeight(nname);
            iid = _bank.GetMolecularStructure(nname);

            base.Display();
            Console.WriteLine(" Height: {0}", hheight);
            Console.WriteLine(" Weight : {0}", wweight);
            Console.WriteLine(" Gender: {0}", ggender);
            Console.WriteLine(" Person Identification: {0}", iid);
        }