Ejemplo n.º 1
0
 /// <summary>
 /// This function adds a link style to the settings
 /// </summary>
 /// <param name="name">The name of the style to add</param>
 /// <param name="linkStyle">The style implementation</param>
 public void AddLinkStyle(string name, LinkStyle linkStyle)
 {
     if (this.linkStyleList.ContainsKey(name))
     {
         LinkStyle old = this.linkStyleList[name];
         this.linkStyleList.Remove(name);
         this.linkStyleList.Add(name, linkStyle);
         old.RaiseChangeEvent();
     }
     else
     {
         this.linkStyleList.Add(name, linkStyle);
         this.defaultLinkStyle.RaiseChangeEvent();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// this function sets the style from the node's infromation
 /// </summary>
 private void SetStyle()
 {
     this.style = this.viewManager.Settings.GetLinkStyle(this.link.StyleName);
     this.style.Changed += new EventHandler(this.Style_Changed);
 }