예제 #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);
        }
예제 #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);
 }
예제 #3
0
        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);
                }
            });
        }
예제 #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;
            }));
        }
예제 #5
0
 public virtual void Avatars_OnAvatarPicks(object sender, AvatarPicksReplyEventArgs e) { OnEvent("On-Avatar-Picks", paramNamesOnAvatarPicks, paramTypesOnAvatarPicks, e); }
예제 #6
0
 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);
         }
     }
 }