Пример #1
0
        public override void ParseAnswers(List <QuestionAnswer> i_Answers)
        {
            base.ParseAnswers(i_Answers);
            float currentEnergyInput = float.Parse(i_Answers[m_QnACurrentEnergy].Answer);

            EnergyManager = new ElectricProperties(currentEnergyInput, sr_MaxBatteryLife);
            ValidateNumberValues(0, sr_MaxBatteryLife, currentEnergyInput, string.Format("The current amount battery value is out of range. min value: {0} , max value {1}.", 0, sr_MaxBatteryLife));
        }
Пример #2
0
        public override List <QuestionAnswer> GetQuestions()
        {
            List <QuestionAnswer> messagesAndAnswers = base.GetQuestions();
            QuestionAnswer        electricQuestions  = ElectricProperties.GetElectricQuestions();

            m_QnACurrentEnergy = messagesAndAnswers.Count;
            messagesAndAnswers.Add(electricQuestions);

            return(messagesAndAnswers);
        }