Exemplo n.º 1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("OnCreateSucceeded", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateSessionManagerListener_0(SwigDirectorOnCreateSucceeded);
     }
     if (SwigDerivedClassHasMethod("OnCreateFailed", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateSessionManagerListener_1(SwigDirectorOnCreateFailed);
     }
     if (SwigDerivedClassHasMethod("OnSessionAdded", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateSessionManagerListener_2(SwigDirectorOnSessionAdded);
     }
     if (SwigDerivedClassHasMethod("OnSessionClosed", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateSessionManagerListener_3(SwigDirectorOnSessionClosed);
     }
     if (SwigDerivedClassHasMethod("OnUserJoinedSession", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateSessionManagerListener_4(SwigDirectorOnUserJoinedSession);
     }
     if (SwigDerivedClassHasMethod("OnUserLeftSession", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateSessionManagerListener_5(SwigDirectorOnUserLeftSession);
     }
     if (SwigDerivedClassHasMethod("OnUserChanged", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateSessionManagerListener_6(SwigDirectorOnUserChanged);
     }
     if (SwigDerivedClassHasMethod("OnServerConnected", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateSessionManagerListener_7(SwigDirectorOnServerConnected);
     }
     if (SwigDerivedClassHasMethod("OnServerDisconnected", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateSessionManagerListener_8(SwigDirectorOnServerDisconnected);
     }
     SharingClientPINVOKE.SessionManagerListener_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8);
 }
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("OnCreateSucceeded", swigMethodTypes0))
     swigDelegate0 = new SwigDelegateSessionManagerListener_0(SwigDirectorOnCreateSucceeded);
   if (SwigDerivedClassHasMethod("OnCreateFailed", swigMethodTypes1))
     swigDelegate1 = new SwigDelegateSessionManagerListener_1(SwigDirectorOnCreateFailed);
   if (SwigDerivedClassHasMethod("OnSessionAdded", swigMethodTypes2))
     swigDelegate2 = new SwigDelegateSessionManagerListener_2(SwigDirectorOnSessionAdded);
   if (SwigDerivedClassHasMethod("OnSessionClosed", swigMethodTypes3))
     swigDelegate3 = new SwigDelegateSessionManagerListener_3(SwigDirectorOnSessionClosed);
   if (SwigDerivedClassHasMethod("OnUserJoinedSession", swigMethodTypes4))
     swigDelegate4 = new SwigDelegateSessionManagerListener_4(SwigDirectorOnUserJoinedSession);
   if (SwigDerivedClassHasMethod("OnUserLeftSession", swigMethodTypes5))
     swigDelegate5 = new SwigDelegateSessionManagerListener_5(SwigDirectorOnUserLeftSession);
   if (SwigDerivedClassHasMethod("OnUserChanged", swigMethodTypes6))
     swigDelegate6 = new SwigDelegateSessionManagerListener_6(SwigDirectorOnUserChanged);
   if (SwigDerivedClassHasMethod("OnServerConnected", swigMethodTypes7))
     swigDelegate7 = new SwigDelegateSessionManagerListener_7(SwigDirectorOnServerConnected);
   if (SwigDerivedClassHasMethod("OnServerDisconnected", swigMethodTypes8))
     swigDelegate8 = new SwigDelegateSessionManagerListener_8(SwigDirectorOnServerDisconnected);
   SharingClientPINVOKE.SessionManagerListener_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8);
 }