示例#1
0
 /// <summary>
 /// Called when [linking to channel].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="Uniframework.Switch.LinkingToChannelEventArgs"/> instance containing the event data.</param>
 protected virtual void OnLinkingToChannel(object sender, LinkingToChannelEventArgs e)
 {
     if (scriptLoaders.ContainsKey(ChannelEventHandlerName.LinkingToChannel))
     {
         RunScripts(ChannelEventHandlerName.LinkingToChannel);
     }
     else
     if (this.LinkingToChannel != null)
     {
         this.LinkingToChannel(sender, e);
     }
 }
示例#2
0
 /// <summary>
 /// Called when [linking to channel].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="Uniframework.Switch.LinkingToChannelEventArgs"/> instance containing the event data.</param>
 protected virtual void OnLinkingToChannel(object sender, LinkingToChannelEventArgs e)
 {
     if (scriptLoaders.ContainsKey(ChannelEventHandlerName.LinkingToChannel))
     {
         RunScripts(ChannelEventHandlerName.LinkingToChannel);
     }
     else
         if (this.LinkingToChannel != null)
         {
             this.LinkingToChannel(sender, e);
         }
 }