예제 #1
0
        /// <summary>
        /// Returns a list of string element contained within the tempFour overall data.
        /// </summary>
        /// <returns>Returns the list of string values contained within temptFour of overall data. returns null if an error occured and must be handled.</returns>
        public List <string> GetData()
        {
            List <string> results = null;

            try
            {
                List <string> temp = new List <string>();
                // Add the template elements to tempory storage and return it.
                temp.Add(Average.ToString());
                temp.Add(LessThanZero.ToString());
                temp.Add(One_Three.ToString());
                temp.Add(Four_Seven.ToString());
                temp.Add(Eight_Fourteen.ToString());
                temp.Add(Fifteen_TwentyOne.ToString());
                temp.Add(TwentyTwo_TwentyEight.ToString());
                temp.Add(TwentyNine_ThirtyFive.ToString());
                temp.Add(ThirtySix_FourtyTwo.ToString());
                temp.Add(FourtyThree_FourtyNine.ToString());
                temp.Add(Fifty_FiftySix.ToString());
                temp.Add(GreaterThanEqualFiftySeven.ToString());
                temp.Add(Total.ToString());
                temp.Add(PercentUnconf.ToString());

                results = new List <string>(temp);
                temp.Clear();
                temp = null;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            return(results);
        }
        /// <summary>
        /// Returns a list of string element contained within the tempThree overall data.
        /// </summary>
        /// <returns>Returns the list of string values contained within tempThree of overall data. returns null if an error occured and must be handled.</returns>
        public List <string> GetData()
        {
            List <string> results = null;

            try
            {
                List <string> temp = new List <string>();
                // Add the template elements to tempory storage and return it.
                temp.Add(Average.ToString());
                temp.Add(Minus_TwentyTwo.ToString());
                temp.Add(Minus_Fifteen_TwentyOne.ToString());
                temp.Add(Minus_Eight_Fourteen.ToString());
                temp.Add(Minus_One_Seven.ToString());
                temp.Add(Zero.ToString());
                temp.Add(One_Seven.ToString());
                temp.Add(Eight_Fourteen.ToString());
                temp.Add(Fifteen_TwentyOne.ToString());
                temp.Add(TwentyTwo.ToString());
                temp.Add(Total.ToString());
                temp.Add(PercentUnconf.ToString());
                temp.Add(PercentFavorable.ToString());

                results = new List <string>(temp);
                temp.Clear();
                temp = null;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            return(results);
        }