/// <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); } }
/// <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); } }