OpenMetaverse.GUI.AvatarList.RemoveAvatar C# (CSharp) Method

RemoveAvatar() private method

private RemoveAvatar ( uint localID ) : void
localID uint
return void
        private void RemoveAvatar(uint localID)
        {
            if (this.InvokeRequired) this.BeginInvoke((MethodInvoker)delegate { RemoveAvatar(localID); });
            else
            {
                lock (_Avatars)
                {
                    if (_Avatars.Contains(localID))
                    {
                        _Avatars.Remove(localID);
                        string key = localID.ToString();
                        int index = this.Items.IndexOfKey(key);
                        if (index > -1) this.Items.RemoveAt(index);
                    }
                }
            }
        }