예제 #1
0
 private static void OnNewGroup(Message msg)
 {
     NewGroupEvent?.Invoke(new SystemMsgEventArgs()
     {
         msg = msg
     });
 }
예제 #2
0
 private void NewGroupCreated(NewGroupEvent newGroup)
 {
     lock (this)
     {
         if (newGroup != null)
         {
             if (!this.Contains(newGroup.GroupCreated))
             {
                 this.AddGroup(newGroup.GroupCreated);
             }
         }
     }
 }
예제 #3
0
        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;
            }
        }
예제 #4
0
 internal void GroupCreated(NewGroupEvent group)
 {
     DataSync.Instance.SyncMessages();
     Messenger.Default.Register <SyncEvent>(this, this.GroupSynced);
 }