コード例 #1
0
ファイル: AudioPluginEngine.cs プロジェクト: janbert/VSTiBox
 void chCtrl_OnEditorOpen(object sender, EventArgs e)
 {
     foreach (var plugin in PluginChannels.SelectMany(x => x.AllPlugins))
     {
         if (!plugin.Equals(sender))
         {
             plugin.CloseEditor();
         }
     }
 }
コード例 #2
0
ファイル: MinecraftServer.cs プロジェクト: Zynx87/Craft.Net
 /// <summary>
 /// Registers the provided <see cref="PluginChannel"/> to listen
 /// for and send plugin messages.
 /// </summary>
 public void RegisterPluginChannel(PluginChannel channel)
 {
     PluginChannels.Add(channel.Channel, channel);
     channel.ChannelRegistered(this);
 }