void Avatars_AvatarPicksReply(object sender, AvatarPicksReplyEventArgs e) { if (e.AvatarID != agentID) return; if (InvokeRequired) { BeginInvoke(new MethodInvoker(() => Avatars_AvatarPicksReply(sender, e))); return; } gotPicks = true; DisplayListOfPicks(e.Picks); }
///<summary>Raises the AvatarPicksReply Event</summary> /// <param name="e">A AvatarPicksReplyEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnAvatarPicksReply(AvatarPicksReplyEventArgs e) { EventHandler<AvatarPicksReplyEventArgs> handler = m_AvatarPicksReply; if (handler != null) handler(this, e); }
void Avatars_AvatarPicksReply(object sender, AvatarPicksReplyEventArgs e) { if (e.AvatarID != resident) return; Gtk.Application.Invoke(delegate { foreach (KeyValuePair<UUID, string> pick in e.Picks) { //this.notebook_picks.InsertPage( this.picks_waiting.Add(pick.Key); MainClass.client.Avatars.RequestPickInfo(resident, pick.Key); } }); }
private void Avatars_OnPicksReply(object sender, AvatarPicksReplyEventArgs e) { if (e.AvatarID != agentID) return; this.BeginInvoke(new MethodInvoker(delegate() { PopulatePicksList(e.Picks); loadwait1.Visible = false; })); }
public virtual void Avatars_OnAvatarPicks(object sender, AvatarPicksReplyEventArgs e) { OnEvent("On-Avatar-Picks", paramNamesOnAvatarPicks, paramTypesOnAvatarPicks, e); }
private void Avatars_AvatarPicksReply(object sender, AvatarPicksReplyEventArgs e) { if (e.AvatarID != targetID) return; foreach (KeyValuePair<UUID, string> kvp in e.Picks) { if (e.AvatarID == Client.Self.AgentID) { Client.Self.PickDelete(kvp.Key); } else { Client.Avatars.RequestPickInfo(e.AvatarID, kvp.Key); } } }