private void skinTextBox_costumeID_CostumeSelected(CostumeItem costumeItem, bool isEnter)
 {
     if (isEnter)
     {
         SetCostume(costumeItem);
     }
 }
 //选择了款号时触发
 private void CostumeCurrentShopTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
 {
     if (isEnter)
     {
         this.SetCostumeDetails(costumeItem);
     }
 }
 private void CostumeCurrentShopTextBox1_CostumeSelected(CostumeItem obj)
 {
     if (obj != null)
     {
         baseButton3_Click(null, null);
     }
 }
 private void SetCostume(CostumeItem costumeItem)
 {
     orgStores        = null;
     newStores        = null;
     this.CostumeItem = costumeItem;
     this.SetCostumeDetails(costumeItem);
 }
 /// <summary>
 /// The figure visibility change handler. Called when the figure changes visibility
 /// </summary>
 /// <param name="figure">The CostumeItem in which a change has happened.</param>
 public void OnFigureVisibilityChange(CostumeItem figure)
 {
     // Debug.Log("ALPHA INJECTION RECIEVED FIGURE VIS CHANGE");
     //updateFigureTexture ();
     //updateClothingTextures ();
     invalidate();
 }
 private void ConfirmSelectCell(CostumeItem item)
 {
     //if (this.CostumeSelected!=null)
     //{
     //    this.CostumeSelected(item,null);
     //}
     Result            = item;
     this.DialogResult = DialogResult.OK;
 }
        /// <summary>
        /// Sets the figure and costume model.
        /// </summary>
        /// <param name="body">Body.</param>
        /// <param name="costume_model">Costume model.</param>
        public void SetFigureAndCostumeModel(CostumeItem body, CostumeModel costume_model)
        {
            figure        = body;
            clothingModel = costume_model;
            figure.OnCostumeItemLODDidChange        += this.OnFigureVisibilityChange;
            clothingModel.OnItemVisibilityDidChange += this.OnClothingVisibilityChange;

            updateClothingTextures();
            invalidate();
        }
Exemple #8
0
 private void CostumeCurrentShopTextBox1_CostumeSelected(CostumeItem obj, bool isEnter)
 {
     if (isEnter)
     {
         if (obj != null)
         {
             BaseButton1_Click(null, null);
         }
     }
 }
Exemple #9
0
        private void CostumeForm_CostumeSelected(CostumeItem costumeItem, EventArgs args)
        {
            this.Text = costumeItem.Costume.ID;
            if (this.CostumeSelected != null)

            {
                curItem = costumeItem;
                this.CostumeSelected(costumeItem, true);
            }
        }
Exemple #10
0
 private void SetCostumeColors(CostumeItem costumeItem)
 {
     // orgStores = null;
     // newStores = null;
     this.skinComboBox_Color.DataSource = null;
     if (costumeItem != null)
     {
         this.CostumeItem = costumeItem;
         this.SetCostumeDetailsColors(costumeItem);
     }
 }
Exemple #11
0
 /// <summary>
 /// Adds a <see cref="CostumeItem"/>  to the CostumeModel.
 /// </summary>
 /// <param name="item">The CostumeItem.</param>
 public void AddItem(CostumeItem item)
 {
     Cleanup();
     if (availableItems.Contains(item) == false)
     {
         availableItems.Add(item);
         // we need to listen to the events of those we watch, in case someone manipulates them
         item.OnCostumeItemVisibilityDidChange += OnCostumeItemVisibilityDidChange;
         item.OnCostumeItemLODDidChange        += OnCostumeItemLODDidChange;
         // item.OnCostumeItemLockChange += OnCostumeItemLockChange;
     }
 }
Exemple #12
0
 private void CostumeForm_CostumeSelected(CostumeItem costumeItem, EventArgs args)
 {
     if (costumeItem == null)
     {
         return;
     }
     this.SkinTxt.Text = costumeItem.Costume.ID;
     if (this.CostumeSelected != null)
     {
         this.CostumeSelected(costumeItem);
     }
 }
Exemple #13
0
        public static List <CostumeStore> GetCostumeStores(CostumeItem costumeItem, bool addEmptyStore)
        {
            List <CostumeStore> storeList = new List <CostumeStore>();

            try
            {
                String[] colors = CommonGlobalUtil.GetStringSplit(costumeItem.Costume.Colors, ',');
                if (colors != null && colors.Length > 0)
                {
                    //判断颜色是否有库存信息
                    if (costumeItem.CostumeStoreList != null)
                    {
                        storeList.AddRange(costumeItem.CostumeStoreList);

                        if (colors.Length > costumeItem.CostumeStoreList.Count)
                        {
                            if (addEmptyStore)
                            {
                                foreach (var color in colors)
                                {
                                    if (!costumeItem.CostumeStoreList.Exists(t => t.ColorName == color))
                                    {
                                        storeList.Add(SetupStores(costumeItem, color));
                                    }
                                }
                            }
                        }
                    }
                    else
                    {
                        if (addEmptyStore)
                        {
                            //创建虚拟库存信息
                            foreach (var color in colors)
                            {
                                //color not existed,then add one
                                storeList.Add(SetupStores(costumeItem, color));
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                CommonGlobalUtil.ShowError(ex);
            }
            foreach (var item in storeList)
            {
                item.CostumeName = CommonGlobalCache.GetCostumeName(item.CostumeID);
            }
            return(storeList);
        }
Exemple #14
0
        public void Read(GamePacketReader reader)
        {
            Index          = reader.ReadInt();
            MannequinIndex = reader.ReadByte(2u);
            ResidenceId    = reader.ReadULong();

            for (int i = 0; i < Costume.MaxCostumeItems; i++)
            {
                var part = new CostumeItem();
                part.Read(reader);
                Items.Add(part);
            }

            Mask  = reader.ReadUInt();
            Token = reader.ReadBit();
        }
Exemple #15
0
 /// <summary>
 /// 设置界面上服装的明细
 /// </summary>
 /// <param name="costumeItem"></param>
 private void SetCostumeDetails(CostumeItem costumeItem)
 {
     if (costumeItem == null)
     {
         this.CostumeCurrentShopTextBox1.SkinTxt.Text = "";
         this.curSelectedCostumeStoreList             = null;
         this.BindingSelectedCostumeStoreSource(null);
     }
     else
     {
         this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
         this.curSelectedCostumeStoreList             = costumeItem.CostumeStoreList;
         this.BindingSelectedCostumeStoreSource(null);
     }
     this.skinTextBox_Remarks.SkinTxt.Text = "";
 }
 private void SetCostumeDetails(CostumeItem costumeItem)
 {
     if (costumeItem == null)
     {
         this.CleanCostumeDetails();
         return;
     }
     this.currentSelectedItem = costumeItem;
     //  this.skinLabel_CostumeName.Text = costumeItem.Costume.BrandName + "-" + costumeItem.Costume.Name;
     this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
     this.skinComboBox_Color.DataSource           = costumeItem.Costume.Colors.Split(',');
     this.skinComboBox_Color.SelectedIndex        = 0;
     this.skinTextBox_bugCount.SkinTxt.Text       = "1";
     CommonGlobalUtil.SetCostumeSize(skinComboBox_Size, costumeItem.Costume);
     //使用它自身的尺码组
     //  this.SetStoreCountText(this.skinComboBox_Color.SelectedValue, this.skinComboBox_Size.SelectedValue);
 }
Exemple #17
0
        /// <summary>
        /// Cleanup this CostumeModel instance by removing null
        /// <see cref="CostumeItem"/> and GameObject references from
        /// <see cref="availableItems"/>
        /// </summary>
        public void Cleanup()
        {
            for (int i = availableItems.Count - 1; i >= 0; i--)
            {
                CostumeItem ci = availableItems[i];
                if (ci == null)
                {
                    availableItems.RemoveAt(i);
                    continue;
                }

                if (ci.gameObject == null)
                {
                    availableItems.RemoveAt(i);
                }
            }
        }
Exemple #18
0
 private void CostumeCurrentShopTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
 {
     if (isEnter)
     {
         if (costumeItem == null)
         {
             //   this.CostumeCurrentShopTextBox1.SkinTxt.Text = "";
             this.curSelectedCostumeStoreList = null;
         }
         else
         {
             //this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
             this.curSelectedCostumeStoreList = costumeItem.CostumeStoreList;
         }
         this.BindingSelectedCostumeStoreSource(null);
     }
 }
Exemple #19
0
 private void SetCostumeDetailsColors(CostumeItem costumeItem)
 {
     if (costumeItem == null)
     {
         return;
     }
     this.CostumeItem = costumeItem;
     if (CostumeItem.Costume != null && CostumeItem.Costume.ColorList.Count > 0)
     {
         List <String> colors = new List <string>();
         foreach (var item in CostumeItem.Costume.ColorList)
         {
             colors.Add(item);
         }
         this.skinComboBox_Color.DataSource   = colors.ToArray();
         this.skinComboBox_Color.SelectedItem = CostumeItem.Costume.ColorList[0];
     }
 }
Exemple #20
0
        private static CostumeStore SetupStores(CostumeItem costumeItem, String color)
        {
            CostumeStore store = new CostumeStore();

            ReflectionHelper.CopyProperty(costumeItem.Costume, store);
            store.ColorName = color;
            store.F         = 0;
            store.L         = 0;
            store.XS        = 0;
            store.M         = 0;
            store.S         = 0;
            store.XL        = 0;
            store.XL2       = 0;
            store.XL3       = 0;
            store.XL4       = 0;
            store.XL5       = 0;
            store.XL6       = 0;
            return(store);
        }
Exemple #21
0
        /// <summary>
        /// 设置界面上服装的明细
        /// </summary>
        /// <param name="costumeItem"></param>
        private void SetCostumeDetails(CostumeItem costumeItem)
        {
            if (costumeItem == null)
            {
                this.CostumeCurrentShopTextBox1.SkinTxt.Text = "";
                this.curSelectedCostumeStoreList             = null;
                CommonGlobalUtil.WriteLog("SetCostumeDetails:curSelectedCostumeStoreList" + curSelectedCostumeStoreList);
                this.BindingSelectedCostumeStoreSource(null);
            }
            else
            {
                this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                this.curSelectedCostumeStoreList             = costumeItem.CostumeStoreList;
                CommonGlobalUtil.WriteLog("SetCostumeDetails:" + curSelectedCostumeStoreList?.Count);
                //  this.BindingSelectedCostumeStoreSource(null);
            }

            this.skinTextBox_Remarks.SkinTxt.Text = "";
        }
        private void SetCostumeDetails(CostumeItem costumeItem)
        {
            if (costumeItem == null)
            {
                //  this.CleanCostumeDetails();
                //return;
                string  CID   = this.CostumeCurrentShopTextBox1.SkinTxt.Text;
                Costume cItem = CommonGlobalCache.GetCostume(CID);
                if (cItem != null)
                {
                    //this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                    costumeItem                            = new CostumeItem();
                    costumeItem.Costume                    = cItem;
                    costumeItem.Costume.ID                 = cItem.ID;
                    costumeItem.Costume.Colors             = cItem.Colors;
                    this.skinComboBox_Color.DataSource     = costumeItem.Costume.Colors.Split(',');
                    this.skinComboBox_Color.SelectedIndex  = 0;
                    this.skinTextBox_bugCount.SkinTxt.Text = "1";
                    CommonGlobalUtil.SetCostumeSize(skinComboBox_Size, costumeItem.Costume);
                    //   this.CostumeCurrentShopTextBox1.SkinTxt.Text = CID;
                    //  CostumeCurrentShopTextBox1.CustomerID = CID;
                    this.currentSelectedItem = costumeItem;
                    //  this.CostumeCurrentShopTextBox1.Visible = false;
                }
            }
            else
            {
                isHasStore = true;

                // this.CostumeCurrentShopTextBox1.Visible = true;

                this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                this.currentSelectedItem               = costumeItem;
                this.skinComboBox_Color.DataSource     = costumeItem.Costume.Colors.Split(',');
                this.skinComboBox_Color.SelectedIndex  = 0;
                this.skinTextBox_bugCount.SkinTxt.Text = "1";
                CommonGlobalUtil.SetCostumeSize(skinComboBox_Size, costumeItem.Costume);
            }


            //  this.skinLabel_CostumeName.Text = costumeItem.Costume.BrandName + "-" + costumeItem.Costume.Name;
        }
Exemple #23
0
        private void SetCostumeDetails(CostumeItem costumeItem)
        {
            if (costumeItem == null)
            {
                this.CleanCostumeDetails();
                return;
            }
            this.currentSelectedItem = costumeItem;
            //  this.skinLabel_CostumeName.Text = costumeItem.Costume.BrandName + "-" + costumeItem.Costume.Name;
            this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
            this.skinComboBox_Color.DataSource           = costumeItem.Costume.Colors.Split(',');
            this.skinComboBox_Color.SelectedIndex        = 0;
            this.skinTextBox_bugCount.SkinTxt.Text       = "1";
            dataGridView2.DataSource = null;

            //隐藏没有的列
            //  HideUnUsedColumns();
            CommonGlobalUtil.SetCostumeSize(skinComboBox_Size, currentSelectedItem.Costume);
            dataGridView2.DataSource = DataGridViewUtil.ListToBindingList(costumeItem.CostumeStoreList);
        }
Exemple #24
0
        //		public void SetItemLock (string name, bool lock_setting)
        //		{
        //			CostumeItem item = GetItemByName (name);
        //			if (item != null) {
        //				if (item.isLocked != lock_setting) {
        //					item.isLocked = lock_setting;
        //				}
        //			}
        //		}



        /// <summary>
        /// Set the visibility for a <see cref="CostumeItem"/> by name.
        /// </summary>
        /// <param name="name">The string name of the costume item. See <see cref="CostumeItem.ID"/>.</param>
        /// <param name="new_visibility">boolean flag visibility.</param>
        public CostumeItem SetItemVisibility(string name, bool new_visibility)
        {
            CostumeItem item = GetItemByName(name);

            if (item != null)
            {
                // if(item.isLocked == false && item.isVisible != new_visibility) {
                if (item.isVisible != new_visibility)
                {
                    if (new_visibility == true && force_single_visible == true)
                    {
                        foreach (CostumeItem t_item in GetVisibleItems())
                        {
                            t_item.SetVisibility(false);
                        }
                    }
                    item.SetVisibility(new_visibility);
                }
            }
            return(item);
        }
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }
            Costume            cItem            = this.currentSource[e.RowIndex];
            List <CostumeItem> selectResultItem = CommonGlobalCache.ServerProxy.GetPfCustomerStores(CustomerID, cItem.ID, true);

            /*   List<CostumeItem> selectResultItem = CommonGlobalCache.ServerProxy.GetCostumeStoreList(new CostumeStoreListPara()
             *     {
             *         CostumeID = cItem.ID,
             *         ShopID =null,
             *         IsOnlyShowValid = filterValid,
             *         IsAccurateQuery = true,
             *     });
             */
            if (selectResultItem.Count > 0)
            {
                this.ConfirmSelectCell(selectResultItem[0]);
            }
            else
            {
                CostumeItem         pfCostumeItem = new CostumeItem();
                List <CostumeStore> cStore        = new List <CostumeStore>();
                pfCostumeItem.Costume = cItem;

                String[] colors = CommonGlobalUtil.GetStringSplit(pfCostumeItem.Costume.Colors, ',');
                //创建虚拟库存信息
                foreach (var color in colors)
                {
                    //color not existed,then add one
                    cStore.Add(SetupStores(pfCostumeItem, color));
                }
                pfCostumeItem.CostumeStoreList = cStore;
                this.ConfirmSelectCell(pfCostumeItem);
                // ShowMessage("该店铺不存在该商品!");
            }
        }
Exemple #26
0
 /// <summary>
 /// Remove a <see cref="CostumeItem"/>  from the CostumeModel.
 /// </summary>
 /// <param name="item">The CostumeItem.</param>
 public void RemoveItem(CostumeItem item)
 {
     if (item != null)
     {
         var key = item.ID;
         for (int i = availableItems.Count - 1; i >= 0; i--)
         {
             if (availableItems[i].ID.Equals(key))
             {
                 availableItems.RemoveAt(i);
             }
             item.OnCostumeItemVisibilityDidChange -= OnCostumeItemVisibilityDidChange;
             item.OnCostumeItemLODDidChange        -= OnCostumeItemLODDidChange;
         }
     }
     else
     {
         availableItems.Remove(null);
     }
     // item.OnCostumeItemLockChange -= OnCostumeItemLockChange;
     Cleanup();
 }
        private void costumeFromSupplierTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
        {
            if (isEnter)
            {
                this.costumeItem = costumeItem;
                if (costumeItem == null)
                {
                    this.curSelectedCostumeStoreList = null;
                    this.textBoxAmount.Text          = string.Empty;
                    skinLabelPrice.Text = string.Empty;
                }
                else
                {
                    this.curSelectedCostumeStoreList = costumeItem.CostumeStoreList;
                    //  this.costumeFromSupplierTextBox1.SkinTxt.Text = costumeItem.ID;
                    //this.curSelectedCostumeStoreList = CostumeFromSupplierTextBox.GetCostumeStores(costumeItem.Costume);
                    //计算客户折扣 批发价

                    CheckStorePrice(pfCustomer.ID, costumeItem.Costume.ID);

                    /*if (this.textBoxAmount.Value == 0)
                     * {
                     *  if (balanceRound)
                     *  {
                     *      //detail.SumMoney = detail.RefundCount * Math.Round(detail.Price * detail.Discount * (decimal)0.01, MidpointRounding.AwayFromZero);
                     *      this.textBoxAmount.Value = costumeItem.Costume.Price == 0 ? 0 : Math.Round(costumeItem.Costume.Price * pfCustomer.PfDiscount * (decimal)0.01, MidpointRounding.AwayFromZero);
                     *  }
                     *  else
                     *  {
                     *      this.textBoxAmount.Value = costumeItem.Costume.Price == 0 ? 0 : Math.Round(costumeItem.Costume.Price * pfCustomer.PfDiscount * (decimal)0.01, 2, MidpointRounding.AwayFromZero);
                     *  }
                     * }*/
                    skinLabelPrice.Text = costumeItem.Costume.Price.ToString();
                }

                this.BindingSelectedCostumeStoreSource();
            }
        }
Exemple #28
0
        private void costumeFromSupplierTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
        {
            if (isEnter)
            {
                if (costumeItem == null)
                {
                    //this.costumeFromShopTextBox1.SkinTxt.Text = "";
                    this.curSelectedCostumeStoreList = null;
                }
                else
                {
                    this.curSelectedCostumeStoreList = new List <CostumeStore>();
                    //    this.costumeFromShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                    List <CostumeStore> stores = CostumeFromShopTextBox.GetCostumeStores(costumeItem, false);
                    foreach (var item in stores)
                    {
                        AddItem4Display(item);
                    }
                }

                this.BindingSelectedCostumeStoreSource();
            }
        }
Exemple #29
0
        private void GetData()
        {
            List <ReplenishDetail> curReplenishDetailList = CommonGlobalCache.ServerProxy.GetReplenishDetail(this.order.ID);
            List <BoundDetail>     detailList             = new List <BoundDetail>();

            foreach (var item in curReplenishDetailList)
            {
                BoundDetail detail = new BoundDetail();

                ReflectionHelper.CopyProperty(item, detail);

                List <CostumeItem> costumesItemList = CommonGlobalCache.ServerProxy.GetCostumeStoreList(new CostumeStoreListPara()
                {
                    CostumeID       = item.CostumeID,
                    IsOnlyShowValid = false,
                    ShopID          = ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue),
                });
                CostumeItem curCostumeItem = costumesItemList.Find(t => t.Costume.ID == item.CostumeID);

                //  CostumePrice destShopStore = CommonGlobalCache.ServerProxy.GetCostumeStorePrice(ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue),item.CostumeID);
                //  GlobalMessageBox.Show(CommonGlobalCache.GetShopName(ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue)));
                CostumeStore destShopStore = curCostumeItem?.CostumeStoreList?.Find(t => t.CostumeID == item.CostumeID && t.ColorName == item.ColorName);
                if (destShopStore != null)
                {
                    //取收货方的吊牌价售价
                    detail.Price     = destShopStore.Price;
                    detail.SalePrice = destShopStore.SalePrice;
                }



                detailList.Add(detail);
            }

            curDetailList = detailList;
        }
Exemple #30
0
        private void SkinTxt_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
        {
            if (e.KeyCode != Keys.Enter)
            {
                return;
            }
            try
            {
                isBarCode = false;
                string costumeID = this.SkinTxt.Text.Trim();
                if (string.IsNullOrEmpty(costumeID))
                {
                    if (this.CostumeSelected != null)
                    {
                        this.CostumeSelected(null);
                    }
                    return;
                }
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                //条形码,先根据条形码获取款号
                //List<BarCode> barCodes = CommonGlobalCache.BarCodeList?.FindAll(t => t.BarCodeValue.ToUpper().Equals(costumeID.ToUpper()));

                ////,条形码为一条,找到这个款号
                //if (barCodes != null && barCodes.Count == 1)
                //{
                //    costumeID = barCodes[0].CostumeID;
                //    this.SkinTxt.Text = barCodes[0].BarCodeValue;
                //    isBarCode = true;
                //}
                if (costumeID.Length == 15)
                {
                    BarCode4Costume costume = CommonGlobalUtil.GetBarCode(costumeID);
                    if (costume != null)
                    {
                        costumeID    = costume.CostumeID;
                        SkinTxt.Text = costume.BarCode;
                        isBarCode    = true;
                    }
                }



                List <Costume> resultList = CommonGlobalCache.CostumeList.FindAll(t => t.ID.ToUpper().Contains(costumeID.ToUpper()) && t.IsValid == true);
                //  List<CostumeItem> resultList = GlobalCache.ServerProxy.GetPfCustomerStores("", costumeID);
                if (resultList == null || resultList.Count == 0)
                {
                    this.CostumeSelected?.Invoke(null);
                    //this.SkinTxt.Text = "";

                    return;
                }
                if (resultList.Count == 1)
                {
                    List <CostumeItem> OneresultList = GlobalCache.ServerProxy.GetPfCustomerStores(CustomerID, costumeID, true);
                    if (OneresultList.Count == 0)
                    {
                        CostumeItem createItem = new CostumeItem();

                        createItem.Costume          = resultList[0];
                        createItem.CostumeStoreList = SetupStores(resultList[0]);
                        OneresultList.Add(createItem);
                    }
                    OneresultList[0].Costume.BrandName    = CommonGlobalCache.GetBrandName(OneresultList[0].Costume.BrandID);
                    OneresultList[0].Costume.SupplierName = CommonGlobalCache.GetSupplierName(OneresultList[0].Costume.SupplierID);
                    if (OneresultList[0].CostumeStoreList != null)
                    {
                        foreach (var item in OneresultList[0].CostumeStoreList)
                        {
                            item.CostumeName = OneresultList[0].Costume.Name;
                            item.BrandName   = OneresultList[0].Costume.BrandName;
                            item.Price       = OneresultList[0].Costume.Price;
                        }
                    }


                    if (!isBarCode)
                    {
                        this.SkinTxt.Text = OneresultList[0].Costume.ID;
                    }
                    if (this.CostumeSelected != null)
                    {
                        this.CostumeSelected(OneresultList[0]);
                    }
                }
                else
                {
                    PfCostumeFromShopForm costumeForm = new PfCostumeFromShopForm(resultList, costumeID, CustomerID, filterValid);
                    //   costumeForm.Hide();
                    // costumeForm.CostumeSelected += CostumeForm_CostumeSelected;
                    if (costumeForm.ShowDialog() == DialogResult.OK)
                    {
                        if (costumeForm.Result == null)
                        {
                            return;
                        }
                        this.SkinTxt.Text = costumeForm.Result.Costume.ID;
                        CostumeSelected?.Invoke(costumeForm.Result);
                    }
                }
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }