private void Instance_OnUserJoinedChannel(string channelName, string userName, string ipAddress) { if (this.InvokeRequired) { // Necessary for thread-safety TripleStringCallback d = new TripleStringCallback(Instance_DoUserJoinedChannel); this.BeginInvoke(d, channelName, userName, ipAddress); return; } Instance_DoUserJoinedChannel(channelName, userName, ipAddress); }
private void Instance_PrivmsgParsed(string channelName, string message, string sender) { if (this.InvokeRequired) { // Necessary for thread-safety TripleStringCallback d = new TripleStringCallback(Instance_DoPrivmsgParsed); this.BeginInvoke(d, channelName, message, sender); return; } Instance_DoPrivmsgParsed(channelName, message, sender); }
private void Instance_OnChannelModesChanged(string sender, string channelName, string modeString) { if (this.InvokeRequired) { // Necessary for thread-safety TripleStringCallback d = new TripleStringCallback(Instance_DoChannelModesChanged); this.BeginInvoke(d, sender, channelName, modeString); return; } Instance_DoChannelModesChanged(sender, channelName, modeString); }