Ejemplo n.º 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();
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
 void Groups_OnGroupJoined(object sender, GroupOperationEventArgs e)
 {
     client.Groups.GroupJoinedReply -= new EventHandler<GroupOperationEventArgs>(Groups_OnGroupJoined);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 void Groups_GroupJoined(object sender, GroupOperationEventArgs e)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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();
        }                        
Ejemplo n.º 8
0
 private void Groups_OnGroupStateChanged(object sender, GroupOperationEventArgs e)
 {
     Client.Groups.RequestCurrentGroups();
 }
Ejemplo n.º 9
0
 private void Groups_GroupMemberEjected(object sender, GroupOperationEventArgs e)
 {
     Client.Groups.RequestCurrentGroups();
 }
Ejemplo n.º 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.");
            }
        }
Ejemplo n.º 11
0
 void Groups_GroupLeaveReply(object sender, GroupOperationEventArgs e)
 {
     if (e.GroupID == group.ID && e.Success)
     {
         BeginInvoke(new MethodInvoker(() => RefreshGroupInfo()));
     }
 }
Ejemplo n.º 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();
         }
     });
 }
Ejemplo n.º 13
0
 public virtual void Groups_OnGroupMemberEjected(object sender, GroupOperationEventArgs e) { OnEvent("On-Group-Member-Ejected", paramNamesOnGroupMemberEjected, paramTypesOnGroupMemberEjected, e); }
Ejemplo n.º 14
0
 public virtual void Groups_OnGroupLeft(object sender, GroupOperationEventArgs e) { OnEvent("On-Group-Left", paramNamesOnGroupLeft, paramTypesOnGroupLeft, e); }
Ejemplo n.º 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;
        }