I need some help with the events. I just can't get it to work :/
This is what I try right now:
Code:
//to register notifications
queryrunner.RegisterForNotifications(ServerNotifyRegisterEvent.TextServer);
queryrunner.Notifications.ServerMessageReceived += Notifications_ServerMessageReceived;
//the void that should be used when the event happens
void Notifications_ServerMessageReceived(object sender, MessageReceivedEventArgs e)
{
label2.Text = "message received";
}
But it just doesn't work like that.