public void SetActive() { RequestManager.SetActiveRoom(Name); active = true; Notifications = 0; NotificationUpdated?.Invoke(Notifications); MessageReceived -= AddNotification; }
private void OnNotificationUpdated(int position) { NotificationUpdated?.Invoke(this, new NotificationItemClickedEventArgs { Position = position } ); }
internal void AddNotification(ChatMessage s) { Notifications++; NotificationUpdated?.Invoke(Notifications); }