예제 #1
0
        /*private double beer;
        private double wine;
        private double liquor;
        private double hardLiquor;
        */
        /// <summary>
        /// Adderar alcoholleveln till en summarisk variabel som innehåller nuvarande alcohollevel.
        /// </summary>
        public double AddDrinkAndSumAlchoholLevel()
        {
            Form1 tempForm = new Form1();

            //alcoholLevelSum += temp.GetChoosenAmountCl();
            alcoholLevelSum += (tempForm.GetValueFromCBAlcoholType() / (tempForm.GetValueFromCBSex() * 1000));
            return alcoholLevelSum;
        }