private static void OnNewGroup(Message msg) { NewGroupEvent?.Invoke(new SystemMsgEventArgs() { msg = msg }); }
private void NewGroupCreated(NewGroupEvent newGroup) { lock (this) { if (newGroup != null) { if (!this.Contains(newGroup.GroupCreated)) { this.AddGroup(newGroup.GroupCreated); } } } }
private void GroupCreated(NewGroupEvent groupEvent) { if (groupEvent.GroupCreated != null) { this.createdGroup = groupEvent.GroupCreated; } else { foreach (var b in this.ApplicationBar.Buttons) { ((ApplicationBarIconButton)b).IsEnabled = true; } this.ApplicationBar.IsVisible = true; } }
internal void GroupCreated(NewGroupEvent group) { DataSync.Instance.SyncMessages(); Messenger.Default.Register <SyncEvent>(this, this.GroupSynced); }