Beispiel #1
0
        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);
        }
Beispiel #2
0
 ///<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);
                }
            });
        }
Beispiel #4
0
        private void Avatars_OnPicksReply(object sender, AvatarPicksReplyEventArgs e)
        {
            if (e.AvatarID != agentID) return;

            this.BeginInvoke(new MethodInvoker(delegate()
            {
                PopulatePicksList(e.Picks);
                loadwait1.Visible = false;
            }));
        }
Beispiel #5
0
 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);
         }
     }
 }