示例#1
0
        private void Friend(object obj)
        {
            if (!(obj is int))
            {
                return;
            }

            if ((int)obj >= c_List.Count || (int)obj < 0)
            {
                return;
            }

            c_Info.AddFriend((Mobile)c_List[(int)obj]);
            NewGump();
        }
示例#2
0
        private void Friend(object obj)
        {
            if (!(obj is bool))
            {
                return;
            }

            if ((bool)obj)
            {
                c_Info.RemoveFriend(c_Target);
            }
            else
            {
                c_Info.AddFriend(c_Target);
            }

            Owner.CloseGump(typeof(ListGump), -5);
            NewGump();
        }