/// <summary>
        /// Attempts to remove the <see cref="NetworkParametersMatrix"/> at the specified frequency from the collection.
        /// </summary>
        /// <param name="frequency">The frequency at which to remove the <see cref="NetworkParametersMatrix"/>.</param>
        /// <returns>True if the element is successfully found and removed; false if not.</returns>
        public bool Remove(double frequency)
        {
            bool one = networkParameters.Remove(frequency);
            bool two = frequencies.Remove(frequency);

            return(one & two);
        }
Exemplo n.º 2
0
        public void Fire(string groupID, string memberID)
        {
            this.rapidPassiveEngine.CustomizeOutter.Send(this.groupInfoTypes.Fire, CompactPropertySerializer.Default.Serialize(new RecruitOrFireContract(groupID, memberID)));
            SortedArray <string> ary = this.groupCache.Get(groupID);

            if (ary != null)
            {
                ary.Remove(memberID);
            }
        }
Exemplo n.º 3
0
        internal void SomeoneQuitGroupNotify(string groupID, string memberID)
        {
            SortedArray <string> ary = this.groupCache.Get(groupID);

            if (ary != null)
            {
                ary.Remove(memberID);
            }
            if (this.SomeoneQuitGroup != null)
            {
                this.SomeoneQuitGroup(groupID, memberID);
            }
        }
Exemplo n.º 4
0
        public void QuitGroup(string groupID, string userID)
        {
            lock (this.locker)
            {
                SortedArray <string> group = this.manager.Get(groupID);
                if (group == null)
                {
                    return;
                }

                group.Remove(userID);
            }

            if (this.SomeoneQuitGroup != null)
            {
                this.SomeoneQuitGroup(groupID, userID);
            }
        }