Пример #1
0
 private void OnRemoveComponent(ILikedPagesComponent i_RemoveComponent)
 {
     if (i_RemoveComponent is LikedPagesComposite)
     {
         Nodes.Remove((i_RemoveComponent as LikedPagesComposite).Node = new TreeNodeProxy(i_RemoveComponent.LikedPageName, i_RemoveComponent));
     }
     else if (i_RemoveComponent is LikedPagesItem)
     {
         Nodes.Remove((i_RemoveComponent as LikedPagesItem).Node = new TreeNodeProxy(i_RemoveComponent.LikedPageName, i_RemoveComponent));
     }
 }
Пример #2
0
 public void OnRemovePageComponent(ILikedPagesComponent i_RemovePageComponent)
 {
     RemovePageComponent.Invoke(i_RemovePageComponent);
 }
Пример #3
0
 public void OnAddPageComponent(ILikedPagesComponent i_AddPageComponent)
 {
     AddPageComponent.Invoke(i_AddPageComponent);
 }
Пример #4
0
 public TreeNodeProxy(string i_LikedPageName, ILikedPagesComponent i_Node) : base(i_LikedPageName)
 {
     Node = i_Node;
     Node.AddPageComponent    += OnAddComponent;
     Node.RemovePageComponent += OnRemoveComponent;
 }
Пример #5
0
 public void OnAddPageComponent(ILikedPagesComponent i_AddPageComponent)
 {
     throw new Exception("You can't add a Page to into another Page");
 }