コード例 #1
0
ファイル: EventProvider.cs プロジェクト: fw2568/OpenUI5Sharp
 /// <summary>
 /// Checks whether the given event provider has the given listener registered for the given event.
 ///
 /// Returns true if function and listener object both match the corresponding parameters of at least one listener registered for the named event.
 /// </summary>
 /// <param name="oEventProvider">The event provider to get the registered events for</param>
 /// <param name="sEventId">The identifier of the event to check listeners for</param>
 /// <param name="fnFunction">The handler function to check for</param>
 /// <returns>Returns whether a listener with the same parameters exists</returns>
 private extern static bool hasListener([email protected] oEventProvider, string sEventId, object fnFunction);
コード例 #2
0
ファイル: Event.cs プロジェクト: fw2568/OpenUI5Sharp
 /// <summary>
 /// Creates an event with the given <code>sId</code>, linked to the provided <code>oSource</code> and enriched with the <code>mParameters</code>.
 /// </summary>
 /// <param name="sId">The id of the event</param>
 /// <param name="oSource">The source of the event</param>
 /// <param name="mParameters">A map of parameters for this event</param>
 public extern Event(string sId, [email protected] oSource, object mParameters);