public bool SetConceptValue(Concept concept, float value) { try { ConceptList[ConceptList.IndexOf(concept)].Value = value; return(true); } catch { return(false); } }
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); }