private void btn_choose_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            int           index  = this.viewer_customs.GetIndex();
            Customization custom = _customs[index];

            if (_prestige)
            {
                _admin.SendBuyPrestigeCustom(custom);
            }
            else
            {
                switch (custom.CustomizationType)
                {
                case CustomizationType.Avatar:
                    _admin.ChangeAvatar(custom.Id);
                    break;

                case CustomizationType.Sleeve:
                    _admin.ChangeSleeve(custom.Id);
                    break;

                case CustomizationType.Partner:
                    _admin.ChangePartner(custom.Id);
                    break;
                }
            }

            Close();
        }
示例#2
0
        private void btn_choose_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            int           index  = this.viewer_customs.GetIndex();
            Customization custom = _customs[index];

            if (_prestige)
            {
                _admin.SendBuyPrestigeCustom(custom);
            }
            else
            {
                _admin.ChangeBorder(custom.Id);
            }
            Close();
        }