示例#1
0
 public bool SetConceptValue(Concept concept, float value)
 {
     try
     {
         ConceptList[ConceptList.IndexOf(concept)].Value = value;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
        public string ShowConcept()
        {
            var str = "";

            foreach (var con in ConceptList)
            {
                var number = ConceptList.IndexOf(con) + 1;
                str = "Концепт " + number + ": " + con.Name + ": \n(";

                foreach (var term in con.TermList)
                {
                    str += con.TermList.IndexOf(term) + " - " + term.Name + ";\n";
                }
                str += "): " + con.DegreeOfBelonging + "\n\n";
            }
            return(str);
        }