Could someone post an example of using MultLinkCatch?
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Could someone post an example of using... Expand / Collapse
Author
Message
Posted 2010-03-15 20:34:41
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2 days ago @ 21:58:17
Posts: 12, Visits: 2 383
Hi all,

know how the objects being added, deleted or changed using MultLinkCatch?


Massaru
Post #5008
Posted 2010-03-15 22:36:45
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 2010-05-15 22:36:10
Posts: 188, Visits: 451
Hi,

you implemet in code interface Eco.LinkOperationCache.IMultiLinkCatcher that has the only method MultiLinkModified(IAssociationEnd ae). Within the method you can implement some handling for one or more multiroles of your class. Important: the method will be fired *after* a multirole changes, i.e. some objects have been added to or removed from the other association end.

  public partial class MyClass : Eco.LinkOperationCache.IMultiLinkCatcher
  {
      #region IMultiLinkCatcher Members
      void Eco.LinkOperationCache.IMultiLinkCatcher.MultiLinkModified(IAssociationEnd ae)
      {
          if (ae.LoopbackIndex == Eco_LoopbackIndices.MyMultilinkProperty1)
          {
               DoSomething1;
          }

          else if (ae.LoopbackIndex == Eco_LoopbackIndices.MyMultilinkProperty2)
          {
               DoSomething2;
          }

      }
      #endregion
............................
  }

/Efim

Post #5009
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 10:37

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,250. 9 queries. Compression Disabled.