Esempio n. 1
0
        public void AddConnection(TermNode termNode, ConnectionType type)
        {
            if (this._connectedTerms == null)
                this._connectedTerms = new Dictionary<TermNode, ConnectionType>();

            this._connectedTerms.Add(termNode, type);
        }
Esempio n. 2
0
 public bool RemoveConnection(TermNode termNode)
 {
     return this._connectedTerms != null
            && this._connectedTerms.Remove(termNode);
 }
Esempio n. 3
0
 public bool HasConnection(TermNode termNode)
 {
     return this._connectedTerms != null
            && this._connectedTerms.ContainsKey(termNode);
 }
Esempio n. 4
0
 private void AddTerm(TermNode term)
 {
     this._terms.Add(term.ToString(), term);
     this._layout.AddTerm(term.ToString());
     this.OnChange();
 }