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(); }
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(); }