Exemple #1
0
        /// <summary>
        /// Get instance of the singleton object
        /// </summary>
        /// <returns></returns>
        public static DataXMLWrapper GetInstance()
        {
            if (instance == null)
            {
                instance = new DataXMLWrapper();
            }

            return(instance);
        }
Exemple #2
0
 /// <summary>
 /// Returns the list of all valid expressions given a figure
 /// </summary>
 /// <param name="figure">Figure</param>
 /// <returns>List of valid expressions</returns>
 public List<string> GetExpression(string figure)
 {
     return DataXMLWrapper.GetInstance().GetExpression(figure);
 }
Exemple #3
0
 /// <summary>
 /// Gets the list of all valid expressions from the repository
 /// </summary>
 /// <returns></returns>
 public List<string> GetExpression()
 {
     return DataXMLWrapper.GetInstance().Expressions;
 }