예제 #1
0
        void Groups_GroupLeft(object sender, GroupOperationEventArgs e)
        {
            Console.WriteLine(Client.ToString() + (e.Success ? " has left group " : " failed to left group ") + e.GroupID.ToString());

            leftGroup = e.Success;
            GroupsEvent.Set();
        }
예제 #2
0
        void Groups_OnGroupJoined(object sender, GroupOperationEventArgs e)
        {
            Console.WriteLine(Client.ToString() + (e.Success ? " joined " : " failed to join ") +
                e.GroupID.ToString());

            if (e.Success)
            {
                Console.WriteLine(Client.ToString() + " setting " + e.GroupID.ToString() +
                    " as the active group");
                Client.Groups.ActivateGroup(e.GroupID);
            }
        }
예제 #3
0
 void Groups_OnGroupJoined(object sender, GroupOperationEventArgs e)
 {
     client.Groups.GroupJoinedReply -= new EventHandler<GroupOperationEventArgs>(Groups_OnGroupJoined);
 }
예제 #4
0
 /// <summary>Raises the GroupMemberEjected event</summary>
 /// <param name="e">An GroupMemberEjectedEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnGroupMemberEjected(GroupOperationEventArgs e)
 {
     EventHandler<GroupOperationEventArgs> handler = m_GroupMemberEjected;
     if (handler != null)
         handler(this, e);
 }
예제 #5
0
 /// <summary>Raises the GroupLeft event</summary>
 /// <param name="e">A GroupOperationEventArgs object containing the
 /// result of the operation returned from the simulator</param>
 protected virtual void OnGroupLeaveReply(GroupOperationEventArgs e)
 {
     EventHandler<GroupOperationEventArgs> handler = m_GroupLeft;
     if (handler != null)
         handler(this, e);
 }
예제 #6
0
 void Groups_GroupJoined(object sender, GroupOperationEventArgs e)
 {
     throw new NotImplementedException();
 }
예제 #7
0
        void Groups_OnGroupJoined(object sender, GroupOperationEventArgs e)
        {
            Console.WriteLine(Client.ToString() + (e.Success ? " joined " : " failed to join ") + e.GroupID.ToString());

            /* A.Biondi 
             * This code is not necessary because it is yet present in the 
             * GroupCommand.cs as well. So the new group will be activated by 
             * the mentioned command. If the GroupCommand.cs would change, 
             * just uncomment the following two lines.
                
            if (success)
            {
                Console.WriteLine(Client.ToString() + " setting " + groupID.ToString() + " as the active group");
                Client.Groups.ActivateGroup(groupID);
            }
                
            */

            joinedGroup = e.Success;
            GetGroupsSearchEvent.Set();
        }                        
예제 #8
0
 private void Groups_OnGroupStateChanged(object sender, GroupOperationEventArgs e)
 {
     Client.Groups.RequestCurrentGroups();
 }
예제 #9
0
 private void Groups_GroupMemberEjected(object sender, GroupOperationEventArgs e)
 {
     Client.Groups.RequestCurrentGroups();
 }
예제 #10
0
        void Groups_GroupMemberEjected(object sender, GroupOperationEventArgs e)
        {
            if (e.GroupID != group.ID) return;

            if (e.Success)
            {
                BeginInvoke(new MethodInvoker(() => { RefreshMembersRoles(); }));
                instance.TabConsole.DisplayNotificationInChat("Group member ejected.");
            }
            else
            {
                instance.TabConsole.DisplayNotificationInChat("Failed to eject group member.");
            }
        }
예제 #11
0
 void Groups_GroupLeaveReply(object sender, GroupOperationEventArgs e)
 {
     if (e.GroupID == group.ID && e.Success)
     {
         BeginInvoke(new MethodInvoker(() => RefreshGroupInfo()));
     }
 }
예제 #12
0
 void Groups_GroupLeaveReply(object sender, GroupOperationEventArgs e)
 {
     Gtk.Application.Invoke(delegate{
         if(e.Success==true)
         {
             store.Clear();
             this.groups_recieved.Clear();
             MainClass.client.Groups.RequestCurrentGroups();
         }
     });
 }
예제 #13
0
 public virtual void Groups_OnGroupMemberEjected(object sender, GroupOperationEventArgs e) { OnEvent("On-Group-Member-Ejected", paramNamesOnGroupMemberEjected, paramTypesOnGroupMemberEjected, e); }
예제 #14
0
 public virtual void Groups_OnGroupLeft(object sender, GroupOperationEventArgs e) { OnEvent("On-Group-Left", paramNamesOnGroupLeft, paramTypesOnGroupLeft, e); }
예제 #15
0
        void Groups_OnGroupJoined(object sender, GroupOperationEventArgs e)
        {
            string msg;
  
            if (e.Success)
            {
                msg = "You have joined group: " + e.GroupID.ToString();  
            }
            else
            {
                msg = "Failed to join group: " + e.GroupID.ToString();
            }
            MessageBox.Show(msg);

            client.Groups.GroupJoinedReply -= gcallback;
        }