void _client_NotificationReceived(object sender, NotificationEventArgs e) { }
void client_NotificationReceived(object sender, NotificationEventArgs e) { _client.Stop(); if (e.Message == "0") MessageBox.Show("Nickname is already in use :("); else { MessageBox.Show("You've registered a new account :)"); } }
protected virtual void OnNewNotification(NotificationEventArgs e) { EventHandler<NotificationEventArgs> temp = NotificationReceived; if (temp != null) temp(this, e); }