public virtual void OnCommadSent(CommandSentEventArgs e) { if (this.CommandSent != null) { CommandSent(this, e); } }
private void CommandSent(object sender, CommandSentEventArgs e) { Action <string> AddToMessageBox = THREAD_MOD; this.messagebox.Invoke(AddToMessageBox, e.Client.IP.ToString() + " sent a command"); }