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